2 implementations of IResponseCacheEntry
Microsoft.AspNetCore.ResponseCaching (2)
CacheEntry\CachedResponse.cs (1)
8
internal sealed class CachedResponse :
IResponseCacheEntry
CacheEntry\CachedVaryByRules.cs (1)
8
internal sealed class CachedVaryByRules :
IResponseCacheEntry
11 references to IResponseCacheEntry
Microsoft.AspNetCore.ResponseCaching (7)
Interfaces\IResponseCache.cs (2)
14
IResponseCacheEntry
? Get(string key);
22
void Set(string key,
IResponseCacheEntry
entry, TimeSpan validFor);
MemoryResponseCache.cs (3)
17
public
IResponseCacheEntry
? Get(string key)
33
return entry as
IResponseCacheEntry
;
37
public void Set(string key,
IResponseCacheEntry
entry, TimeSpan validFor)
ResponseCachingMiddleware.cs (2)
136
internal async Task<bool> TryServeCachedResponseAsync(ResponseCachingContext context,
IResponseCacheEntry
? cacheEntry)
207
var
cacheEntry = _cache.Get(context.BaseKey);
Microsoft.AspNetCore.ResponseCaching.Tests (4)
TestUtils.cs (4)
369
private readonly IDictionary<string,
IResponseCacheEntry
> _storage = new Dictionary<string,
IResponseCacheEntry
>();
373
public
IResponseCacheEntry
Get(string key)
386
public void Set(string key,
IResponseCacheEntry
entry, TimeSpan validFor)