Ejemplo n.º 1
0
        public async Task TestGoogle()
        {
            var(found, _) = await _cache.TryGetAsync(IPAddress.Parse("8.8.8.8"));

            Assert.IsTrue(found);
        }
Ejemplo n.º 2
0
        public async ValueTask <T> GetAsync()
        {
            var(_, value) = await _cache.TryGetAsync(0);

            return(value !);
        }