Skip to content

RedisCache configure code-only configuration for StackExchange.Redis #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2023

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