Interface AntCacheConfig

Hierarchy

  • AntCacheConfig

Properties

checkPeriod?: number

The period in seconds, as a number, used for the automatic delete check interval. 0 = no periodic check.

@default: 30

deleteOnExpire?: boolean

whether keys will be deleted automatically when they expire.

maxKeys?: number

Specifies a maximum amount of keys that can be stored in the cache. If a new item is set and the cache is full, an error is thrown and the key will not be saved in the cache.

0 disables the key limit.

@default: 0

ttl?: number

Default TTL in seconds.

@default: double the default checkPeriod

Generated using TypeDoc