Skip to content

Commit

Permalink
DOC-2774: add cnx string details and RediSearch reqt (#212)
Browse files Browse the repository at this point in the history
* DOC-2774: add cnx string details and RediSearch reqt

* DOC-2774: update dictionary.txt

* DOC-2774: incorporate feedback
  • Loading branch information
dwdougherty authored Oct 17, 2023
1 parent 18b7a92 commit 2def562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ untap
untarring
uptime
url
URI
URIs
usr
v1
x86
Expand Down
9 changes: 7 additions & 2 deletions docs/stack/get-started/om-clients/stack-dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ aliases:
## Prerequisites

* [.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* And IDE for writing .NET (Visual Studio, Rider, Visual Studio Code)
* Any IDE for writing .NET (Visual Studio, Rider, Visual Studio Code).
* RediSearch must be installed as part of your Redis Stack configuration.
* Optional: Docker Desktop for running redis-stack in docker for local testing.

## Skip to the code
Expand All @@ -41,7 +42,11 @@ Then open the `Redis.OM.Skeleton.csproj` file in your IDE of choice.

## Configure the app

Add a `"REDIS_CONNECTION_STRING" field to your `appsettings.json` file to configure the application. Set that connection string to be the URI of your Redis instance. If using the docker command mentioned earlier, your connection string will be `redis://localhost:6379`.
Add a `REDIS_CONNECTION_STRING` field to your `appsettings.json` file to configure the application. Set that connection string to be the URI of your Redis instance. If using the docker command mentioned earlier, your connection string will be `redis://localhost:6379`.

### Connection string specification

The specification for Redis URIs is located [here](https://www.iana.org/assignments/uri-schemes/prov/redis). You can use `:password@host:port` or `default:password@host:port` for connection strings that do not include `username`.

## Create the model

Expand Down

0 comments on commit 2def562

Please sign in to comment.