0
zyrel.sermon created
Hi
in the code below, is it possible to set the DatabaseId programatically based on the current connection string of the database?
Configuration.Caching.UseRedis(options => { options.ConnectionString = _appConfiguration["RedisCache:ConnectionString"]; options.DatabaseId = _appConfiguration.GetValue<int>("RedisCache:DatabaseId"); });
Please Advise, Thanks
1 Answer(s)
-
0
hi @zyrel.sermon
You can consider replace the
AbpRedisCacheDatabaseProvider
service.https://github.com/aspnetboilerplate/aspnetboilerplate/blob/b39157d04b845804687542e89a0b506847f73537/src/Abp.RedisCache/Runtime/Caching/Redis/AbpRedisCacheDatabaseProvider.cs#L10