Search Results for

    Show / Hide Table of Contents

    Class CacheConfiguration

    Holds the configurations for a cached value.

    Inheritance
    Object
    CacheConfiguration
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Caching.Configurations
    Assembly: Color-Chan.Discord.Caching.dll
    Syntax
    public class CacheConfiguration

    Properties

    | Improve this Doc View Source

    AbsoluteExpiration

    Gets or sets an absolute expiration time, relative to now. Default is 30 seconds.

    Declaration
    public TimeSpan AbsoluteExpiration { get; set; }
    Property Value
    Type Description
    TimeSpan
    | Improve this Doc View Source

    SlidingExpiration

    Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set). Default is 15 seconds.

    Declaration
    public TimeSpan SlidingExpiration { get; set; }
    Property Value
    Type Description
    TimeSpan
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX