Exemplo n.º 1
0
        public async Task FlushDatabaseAsync()
        {
            var options = GetConfigurationOptions(true);

            using (var connection = GetConnection(options).Value)
                using (var client = new StackExchangeRedisCacheClient(connection, new NewtonsoftSerializer()))
                    await client.FlushDbAsync();
        }
Exemplo n.º 2
0
 public Task ClearAsync() => Client.FlushDbAsync();
Exemplo n.º 3
0
 public Task ClearAsync()
 {
     return(_retryPolicy.ExecuteAsync(() => _cacheClient.FlushDbAsync()));
 }