コード例 #1
0
        public async Task CanClearCache()
        {
            await _staticCacheManager.SetAsync(new CacheKey("some_key_1"), 3);

            await _staticCacheManager.ClearAsync();

            var rez = await _staticCacheManager.GetAsync(new CacheKey("some_key_1"), () => Task.FromResult((object)null));

            rez.Should().BeNull();
        }