0
uenlkr4e created
Hi, Is there a documentation showing how to set up Redis with multi nodes? At the moment I only see the connection string and database id properties. But we would like to use a multi node redis structure so I wonder how we can set that up in redis config part of the application or in app settings.
thank you.
at the moment this is what i have:
Configuration.Caching.UseRedis(options =>
{
options.ConnectionString = _appConfiguration["Abp:RedisCache:ConnectionString"];
options.DatabaseId = _appConfiguration.GetValue<int>("Abp:RedisCache:DatabaseId");
});
"Abp": {
"RedisCache": {
"ConnectionString": "localhost:6379,password=password,ssl=False",
"DatabaseId": 0
}
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi @uenlkr4e
For StackExchange.Redis, the ConnectionString is highly flexible. Instead of just listing a single node, you provide a comma-separated list of all your Redis nodes.
You simply list some (or all) of the nodes in your cluster. Abp will then discover the entire cluster topology.
"Abp": { "RedisCache": { "ConnectionString": "redis-node-1:6379,redis-node-2:6379,redis-cluster-node-3:6379,password=yourpassword,ssl=False", "DatabaseId": 0 } }Related Abp Document Related StackExchange.Redis Document
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)