3using System.Threading.Tasks;
29 bool CanCache(
string BareJid,
string LocalResource,
string ContentType);
41 Task
AddToCache(
string BareJid,
string LocalResource,
string ContentType,
string ETag, DateTimeOffset LastModified,
42 DateTimeOffset? Expires, Stream Content);
Interface for HTTPX caches. HTTPX caches can improve performance by storing resources locally.
bool CanCache(string BareJid, string LocalResource, string ContentType)
Checks if content from a remote resource can be cached.
Task< IHttpxCachedResource > TryGetCachedResource(string BareJid, string LocalResource)
Tries to get a reference to the resource from the local cache.
Task AddToCache(string BareJid, string LocalResource, string ContentType, string ETag, DateTimeOffset LastModified, DateTimeOffset? Expires, Stream Content)
Adds content to the cache.