public async Task FlushAllDatabasesAsync(CommandFlags flags = CommandFlags.None)
 {
     try
     {
         if (_redisServer != null)
         {
             await _redisServer.FlushAllDatabasesAsync(flags)
             .ConfigureAwait(false);
         }
     }
     catch (Exception e)
     {
         LogError(e);
     }
 }
Example #2
0
 public void FlushAllDatabasesAsync_RedisServer_ServerMethodCorrect()
 {
     Assert.DoesNotThrow(() => _redisServer.FlushAllDatabasesAsync());
     _serverMock.Verify(x => x.FlushAllDatabasesAsync(CommandFlags.None), Times.Once);
 }