Skip to main content

cache_redis_src.default

Class: default<V\>#

cache/redis/src.default

Type parameters#

NameDefault
Vstring

Implements#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new default<V\>(options?: RedisOptions): default<V\>

Type parameters:#

NameDefault
Vstring

Parameters:#

NameType
options?RedisOptions

Returns: default<V\>

Defined in: packages/cache/redis/src/index.ts:9

Properties#

client#

Readonly client: Redis

Defined in: packages/cache/redis/src/index.ts:7

Methods#

delete#

delete(key: string): Promise<boolean\>

Parameters:#

NameType
keystring

Returns: Promise<boolean\>

Implementation of: KeyValueCache

Defined in: packages/cache/redis/src/index.ts:34


get#

get(key: string): Promise<V\>

Parameters:#

NameType
keystring

Returns: Promise<V\>

Implementation of: KeyValueCache

Defined in: packages/cache/redis/src/index.ts:25


set#

set(key: string, value: V, options?: KeyValueCacheSetOptions): Promise<void\>

Parameters:#

NameType
keystring
valueV
options?KeyValueCacheSetOptions

Returns: Promise<void\>

Implementation of: KeyValueCache

Defined in: packages/cache/redis/src/index.ts:19