1 override of GetOrCreateAsync
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
111public override ValueTask<T> GetOrCreateAsync<TState, T>(string key, TState state, Func<TState, CancellationToken, ValueTask<T>> underlyingDataCallback, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default)
4 references to GetOrCreateAsync
Microsoft.Extensions.Caching.Hybrid (1)
Runtime\HybridCache.cs (1)
48=> GetOrCreateAsync(key, factory, WrappedCallbackCache<T>.Instance, options, tags, token);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
ServiceConstructionTests.cs (1)
101var actual = await cache.GetOrCreateAsync(Me(), expected, async (state, _) => state);
Microsoft.Extensions.Caching.MicroBenchmarks (2)
HybridCacheBenchmarks.cs (2)
84=> _hybrid.GetOrCreateAsync(KeyHybrid, CustomerId, 89=> _hybrid.GetOrCreateAsync(KeyHybridImmutable, CustomerId, static (id, ct) => ImmutableCustomer.GetAsync(id, ct));