@@ -23,7 +23,7 @@ private ValueTask<IRedisClientAsync> GetClientAsync(in CancellationToken token)
2323
2424 async Task < T > ICacheClientAsync . GetAsync < T > ( string key , CancellationToken token )
2525 {
26- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
26+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
2727 return await client . GetAsync < T > ( key , token ) . ConfigureAwait ( false ) ;
2828 }
2929
@@ -53,7 +53,7 @@ async Task ICacheClientAsync.FlushAllAsync(CancellationToken token)
5353
5454 async Task < IDictionary < string , T > > ICacheClientAsync . GetAllAsync < T > ( IEnumerable < string > keys , CancellationToken token )
5555 {
56- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
56+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
5757 return await client . GetAllAsync < T > ( keys , token ) . ConfigureAwait ( false ) ;
5858 }
5959
@@ -71,13 +71,13 @@ async Task<bool> ICacheClientAsync.RemoveAsync(string key, CancellationToken tok
7171
7272 async Task < TimeSpan ? > ICacheClientAsync . GetTimeToLiveAsync ( string key , CancellationToken token )
7373 {
74- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
74+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
7575 return await client . GetTimeToLiveAsync ( key , token ) . ConfigureAwait ( false ) ;
7676 }
7777
7878 async IAsyncEnumerable < string > ICacheClientAsync . GetKeysByPatternAsync ( string pattern , [ EnumeratorCancellation ] CancellationToken token )
7979 {
80- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
80+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
8181 await foreach ( var key in client . GetKeysByPatternAsync ( pattern , token ) . ConfigureAwait ( false ) . WithCancellation ( token ) )
8282 {
8383 yield return key ;
0 commit comments