Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IHttpxCache.cs
1using System;
2using System.IO;
3using System.Threading.Tasks;
4
6{
10 public interface IHttpxCache
11 {
18 Task<IHttpxCachedResource> TryGetCachedResource(string BareJid, string LocalResource);
19
29 bool CanCache(string BareJid, string LocalResource, string ContentType);
30
41 Task AddToCache(string BareJid, string LocalResource, string ContentType, string ETag, DateTimeOffset LastModified,
42 DateTimeOffset? Expires, Stream Content);
43 }
44}
Interface for HTTPX caches. HTTPX caches can improve performance by storing resources locally.
Definition: IHttpxCache.cs:11
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.