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();
        }
 public Task ClearAsync() => Client.FlushDbAsync();
Exemple #3
0
 public Task ClearAsync()
 {
     return(_retryPolicy.ExecuteAsync(() => _cacheClient.FlushDbAsync()));
 }