Skip to content

Commit e06ef73

Browse files
committed
Fix "command role not support for normal user" when using Aliyun redis service
1 parent cf78243 commit e06ef73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Microsoft.Extensions.Caching.ServiceStackRedis/ServiceStackRedisCache.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public ServiceStackRedisCache(IOptions<ServiceStackRedisCacheOptions> optionsAcc
2424
_options = optionsAccessor.Value;
2525

2626
var host = $"{_options.Password}@{_options.Host}:{_options.Port}";
27+
RedisConfig.VerifyMasterConnections = false;
2728
_redisManager = new RedisManagerPool(host);
2829
}
2930

src/Microsoft.Extensions.Caching.ServiceStackRedis/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0.2",
2+
"version": "1.0.0.3",
33
"name": "ServiceStackRedisCache",
44
"description": "Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using ServiceStack.Redis.Core",
55
"projectUrl": "https://github.com/cnblogs/ServiceStackRedisCache",

0 commit comments

Comments
 (0)