RedisCache class
Class RedisCache. Implements cache engine over redis.
Signature:
export declare class RedisCache implements ICache
Implements: ICache
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string | |||
|
boolean |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Removes stored in cache value under given key | ||
|
|
Safely destroys redis connection | |
|
Returns value stored in cache by a given key | ||
|
Initializes cache instance | ||
|
Purges all keys from cache by a given wildcard mask | ||
|
Stores in cache given value under given key. If TTL is specified, cached value will expire in a given number of milliseconds. If NX argument set to true will create key:value in cache only if it does not exist yet. Given value could be any JSON-compatible object and will be serialized automatically. |