diff --git a/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.md b/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.md index 6bffcd0f8..8ff14d6a9 100644 --- a/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.md +++ b/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.md @@ -66,7 +66,7 @@ distributedCacheClient.Set(key, "test_content"); ``` C# builder.Services.AddDistributedCache(distributedCacheOptions => { - // Redis configuration information is obtained through `IOptionsMonitor` + // Redis configuration information is obtained through IOptionsMonitor distributedCacheOptions.UseStackExchangeRedisCache(); }); ``` diff --git a/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.zh-CN.md b/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.zh-CN.md index 989dfb29f..429acadc5 100644 --- a/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.zh-CN.md +++ b/src/Contrib/Caching/Distributed/Masa.Contrib.Caching.Distributed.StackExchangeRedis/README.zh-CN.md @@ -66,7 +66,7 @@ distributedCacheClient.Set(key, "test_content"); ```C# builder.Services.AddDistributedCache(distributedCacheOptions => { - // Redis配置信息是通过`IOptionsMonitor`来获取 + // Redis配置信息是通过 IOptionsMonitor 来获取 distributedCacheOptions.UseStackExchangeRedisCache(); }); ``` diff --git a/src/Contrib/Caching/Masa.Contrib.Caching.MultilevelCache/MultilevelCacheClient.cs b/src/Contrib/Caching/Masa.Contrib.Caching.MultilevelCache/MultilevelCacheClient.cs index 621b3388a..ba526791b 100644 --- a/src/Contrib/Caching/Masa.Contrib.Caching.MultilevelCache/MultilevelCacheClient.cs +++ b/src/Contrib/Caching/Masa.Contrib.Caching.MultilevelCache/MultilevelCacheClient.cs @@ -549,6 +549,7 @@ private void PubSub( subscribeOptions.Operation = operation; subscribeOptions.Value = value; }); + } private async Task PubSubAsync(string key, @@ -607,5 +608,4 @@ private void Subscribe( } #endregion - }