Class CacheConfiguration
Holds the configurations for a cached value.
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Caching.Configurations
Assembly: Color-Chan.Discord.Caching.dll
Syntax
public class CacheConfiguration
Properties
| Improve this Doc View SourceAbsoluteExpiration
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 |
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 |