Exemplo n.º 1
0
        public async Task OnBeforeEachTest()
        {
            if (cacheClient is object)
            {
                await cacheClient.DisposeAsync();
            }

            cacheClient = new RedisClient(TestConfig.SingleHost);
            await cacheClient.FlushAllAsync();
        }
Exemplo n.º 2
0
#pragma warning restore CS8425

        public ValueTask DisposeAsync() => cache.DisposeAsync();