cache_redis_src.default
#
Class: default<V\>cache/redis/src.default
#
Type parametersName | Default |
---|---|
V | string |
#
Hierarchy- default
#
Implements- KeyValueCache<V\>
#
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor+ new default<V\>(options?
: RedisOptions): default<V\>
#
Type parameters:Name | Default |
---|---|
V | string |
#
Parameters:Name | Type |
---|---|
options? | RedisOptions |
Returns: default<V\>
Defined in: packages/cache/redis/src/index.ts:8
#
Properties#
client• Readonly
client: Redis
Defined in: packages/cache/redis/src/index.ts:6
#
Methods#
deleteâ–¸ delete(key
: string): Promise<boolean\>
#
Parameters:Name | Type |
---|---|
key | string |
Returns: Promise<boolean\>
Implementation of: KeyValueCache
Defined in: packages/cache/redis/src/index.ts:33
#
getâ–¸ get(key
: string): Promise<V\>
#
Parameters:Name | Type |
---|---|
key | string |
Returns: Promise<V\>
Implementation of: KeyValueCache
Defined in: packages/cache/redis/src/index.ts:24
#
setâ–¸ set(key
: string, value
: V, options?
: KeyValueCacheSetOptions): Promise<void\>
#
Parameters:Name | Type |
---|---|
key | string |
value | V |
options? | KeyValueCacheSetOptions |
Returns: Promise<void\>
Defined in: packages/cache/redis/src/index.ts:18