Constructors
constructor
-
Parameters
-
cache: NodeCache
-
prefix: string
Properties
Private cache
cache: NodeCache
Private fullPrefix
fullPrefix: string
Methods
del
-
Parameters
Returns number
get
-
Type parameters
Parameters
Returns T
set
- set<T>(key: string, value: T, ttl?: number): boolean
-
Type parameters
Parameters
-
key: string
-
value: T
-
Optional ttl: number
Returns boolean