@@ -23,7 +23,7 @@ private ValueTask<IRedisClientAsync> GetClientAsync(in CancellationToken token)
23
23
24
24
async Task < T > ICacheClientAsync . GetAsync < T > ( string key , CancellationToken token )
25
25
{
26
- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
26
+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
27
27
return await client . GetAsync < T > ( key , token ) . ConfigureAwait ( false ) ;
28
28
}
29
29
@@ -53,7 +53,7 @@ async Task ICacheClientAsync.FlushAllAsync(CancellationToken token)
53
53
54
54
async Task < IDictionary < string , T > > ICacheClientAsync . GetAllAsync < T > ( IEnumerable < string > keys , CancellationToken token )
55
55
{
56
- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
56
+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
57
57
return await client . GetAllAsync < T > ( keys , token ) . ConfigureAwait ( false ) ;
58
58
}
59
59
@@ -71,13 +71,13 @@ async Task<bool> ICacheClientAsync.RemoveAsync(string key, CancellationToken tok
71
71
72
72
async Task < TimeSpan ? > ICacheClientAsync . GetTimeToLiveAsync ( string key , CancellationToken token )
73
73
{
74
- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
74
+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
75
75
return await client . GetTimeToLiveAsync ( key , token ) . ConfigureAwait ( false ) ;
76
76
}
77
77
78
78
async IAsyncEnumerable < string > ICacheClientAsync . GetKeysByPatternAsync ( string pattern , [ EnumeratorCancellation ] CancellationToken token )
79
79
{
80
- await using var client = await redisManager . GetReadOnlyCacheClientAsync ( token ) . ConfigureAwait ( false ) ;
80
+ await using var client = await redisManager . GetReadOnlyClientAsync ( token ) . ConfigureAwait ( false ) ;
81
81
await foreach ( var key in client . GetKeysByPatternAsync ( pattern , token ) . ConfigureAwait ( false ) . WithCancellation ( token ) )
82
82
{
83
83
yield return key ;
0 commit comments