9 implementations of RemoveAsync
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1202public Task RemoveAsync(string key, CancellationToken token = default) => _cache.RemoveAsync(key);
Microsoft.Extensions.AI.Tests (1)
TestInMemoryCacheStorage.cs (1)
35public Task RemoveAsync(string key, CancellationToken token = default)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
L2Tests.cs (1)
251Task IDistributedCache.RemoveAsync(string key, CancellationToken token)
NullDistributedCache.cs (1)
24Task IDistributedCache.RemoveAsync(string key, CancellationToken token) => Task.CompletedTask;
StampedeTests.cs (1)
53Task IDistributedCache.RemoveAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided");
UnreliableL2Tests.cs (1)
173public Task RemoveAsync(string key, CancellationToken token = default)
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
147public Task RemoveAsync(string key, CancellationToken token = default(CancellationToken))
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
157public async Task RemoveAsync(string key, CancellationToken token = default(CancellationToken))
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
478public async Task RemoveAsync(string key, CancellationToken token = default)
11 references to RemoveAsync
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
187return _backendCache is null ? default : new(_backendCache.RemoveAsync(key, token));
Microsoft.Extensions.Caching.Hybrid.Tests (3)
DistributedCacheTests.cs (2)
114await cache.RemoveAsync(key); 242await cache.RemoveAsync(key);
UnreliableL2Tests.cs (1)
174=> TrackLast(ThrowIfBrokenAsync(WriteBreak) ?? Tail.RemoveAsync(key, token));
Microsoft.Extensions.Caching.SqlServer.Tests (4)
SqlServerCacheWithDatabaseTest.cs (4)
112await cache.RemoveAsync(key); 152await cache.RemoveAsync(key); 193await cache.RemoveAsync(key); 680await cache.RemoveAsync(key);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
RedisCacheSetAndRemoveTests.cs (2)
121await cache.RemoveAsync(key); // known state 161await cache.RemoveAsync(key); // known state
TimeExpirationAsyncTests.cs (1)
274await cache.RemoveAsync(caller);