Search Results for

    Show / Hide Table of Contents

    Class MemoryHttpResponseCache

    In-process GET/HEAD response cache. Zero cost when unused (not registered in middleware).

    Inheritance
    object
    MemoryHttpResponseCache
    Implements
    IHttpResponseCache
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Type Description
    int

    Methods

    | Edit this page View Source

    Purge(string?)

    Declaration
    public int Purge(string? pathPrefix = null)
    Parameters
    Type Name Description
    string pathPrefix
    Returns
    Type Description
    int
    | 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
    Type Description
    bool

    Implements

    Titanium.Web.Proxy.Abstractions.Plugins.IHttpResponseCache
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX