Interface GenericCachingStrategy<T>
Methods
clean
- clean(): void
-
Returns void
delete
- delete(key: string): void
-
Returns void
expires
- expires(key: string): undefined | number
-
Returns undefined | number
get
- get(key: string): undefined | T
-
Returns undefined | T
set
- set(key: string, value: T, expiration?: number): void
-
Parameters
-
key: string
-
value: T
-
Optional
expiration: number
Returns void
Cleans up any expired cache values