Closed liugt34 closed 6 years ago
and i don't understand what different between the method "AddConfigurationStore" and "AddConfigurationStoreCache"
Hi @liugt34
You would follow the following code as an example:
services.AddIdentityServer()
.AddRedisCaching(options =>
{
options.RedisConnectionString = "--redis connection string --";
})
.AddClientStoreCache<IdentityServer4.EntityFramework.Stores.ClientStore>()
.AddResourceStoreCache<IdentityServer4.EntityFramework.Stores.ResourceStore>();
For the second question, this method is in IdentityServer4.EntityFramework
package, please take a look at it's implementation here
For that, alternatively you can use it like this:
services.AddIdentityServer()
.AddRedisCaching(options =>
{
options.RedisConnectionString = "--redis connection string --";
})
.AddConfigurationStoreCache();
@AliBazzi thank you very much
i want save the config data to mysql ,and use the redis as a cache ,how can i do it? thank u