11 references to GetAsync
Microsoft.Extensions.Caching.Hybrid.Tests (11)
BufferReleaseTests.cs (11)
39var first = await cache.GetOrCreateAsync(key, _ => GetAsync()); 51var second = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); 57var third = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); 123serializer.Serialize(await GetAsync(), writer); 130var first = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); // we expect this to come from L2, hence NoUnderlying 142var second = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); 148var third = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); 182serializer.Serialize(await GetAsync(), writer); 189var first = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); // we expect this to come from L2, hence NoUnderlying 201var second = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying); 207var third = await cache.GetOrCreateAsync(key, _ => GetAsync(), _noUnderlying);