Exemple #1
0
 public async ValueTask <string> Info(CancellationToken cancellationToken)
 {
     return(await _redisClient.RunWithTimeout(async token =>
     {
         return await _redisClient.SendAndReceiveAsync(Commands.Info, _redisClient.DataResultProcessor, CancellationToken.None);
     }, cancellationToken));
 }
Exemple #2
0
 public async Task <string> ClusterInfoAsync(CancellationToken cancellationToken)
 {
     return(await _redisClient.RunWithTimeout(async token =>
     {
         return await _redisClient.SendAndReceiveAsync(Commands.ClusterInfo, _redisClient.DataResultProcessor, token);
     }, cancellationToken).ConfigureAwait(false));
 }