Constructors
constructor
-
Type parameters
Parameters
Returns Cache<Item>
Methods
delete
- delete(key: string): void
get
- get<GetItem>(key: string): GetItem
-
Type parameters
Parameters
Returns GetItem
has
- has(key: string): boolean
-
Parameters
Returns boolean
prune
- prune(amount?: number): void
set
- set(key: string, value: Item, ttl?: number): CacheData<Item>
-
Parameters
-
key: string
-
value: Item
-
Optional ttl: number