Class MemoryHttpResponseCache
In-process GET/HEAD response cache. Zero cost when unused (not registered in middleware).
Inheritance
MemoryHttpResponseCache
Implements
IHttpResponseCache
Namespace: Titanium.Web.Proxy.Caching
Assembly: Titanium.Web.Proxy.dll
Syntax
public sealed class MemoryHttpResponseCache : IHttpResponseCache
Properties
|
Edit this page
View Source
Count
Declaration
public int Count { get; }
Property Value
Methods
|
Edit this page
View Source
Purge(string?)
Declaration
public int Purge(string? pathPrefix = null)
Parameters
| Type |
Name |
Description |
| string |
pathPrefix |
|
Returns
|
Edit this page
View Source
Set(string, CachedHttpResponse, TimeSpan)
Declaration
public void Set(string cacheKey, CachedHttpResponse response, TimeSpan ttl)
Parameters
| Type |
Name |
Description |
| string |
cacheKey |
|
| CachedHttpResponse |
response |
|
| TimeSpan |
ttl |
|
|
Edit this page
View Source
TryGet(string, out CachedHttpResponse?)
Declaration
public bool TryGet(string cacheKey, out CachedHttpResponse? response)
Parameters
| Type |
Name |
Description |
| string |
cacheKey |
|
| CachedHttpResponse |
response |
|
Returns
Implements
Titanium.Web.Proxy.Abstractions.Plugins.IHttpResponseCache