Interface CacheEntryOptions

Cache options are used to configure the cache entry

interface CacheEntryOptions {
    expirationTime: number;
    sliding: boolean;
    slidingExpirationTime: number;
}

Properties

expirationTime: number

The expiration time of the item in milliseconds since the epoch (1/1/1970) or 0 for no expiration

sliding: boolean

If true, the expiration time will be reset every time the item is accessed

slidingExpirationTime: number

The time in milliseconds to add to the expiration time when the item is accessed