Skip to content

Conversation

@Memoyu
Copy link
Contributor

@Memoyu Memoyu commented Feb 2, 2023

Content:

RedisCache support configure code-only configuration

Usage:

var redisConfig = ConfigurationOptions.Parse("127.0.0.1:6380");
redisConfig.DefaultDatabase = 8;
services.AddEasyCaching(x =>
     x.UseRedis(options =>
     {
         options.DBConfig.ConfigurationOptions = redisConfig;
     }, ProviderName).UseRedisLock().WithJson(ProviderName));

@catcherwong catcherwong merged commit 85a30af into dotnetcore:dev Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Being able to configure code-only configuration for StackExchange.Redis

2 participants