Skip to main content

Class: RedisDB

Implements#

Constructors#

constructor#

+ new RedisDB(redisClient: Redis): RedisDB

Parameters#

NameType
redisClientRedis

Returns: RedisDB

Defined in: db/redis.ts:5

Properties#

redisClient#

• redisClient: Redis

Defined in: db/redis.ts:5

Methods#

add#

â–¸ add(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/redis.ts:29


deleteKey#

â–¸ deleteKey(key: string): Promise<boolean>

Parameters#

NameType
keystring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/redis.ts:23


deleteUrl#

â–¸ deleteUrl(key: string, url: string): Promise<boolean>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/redis.ts:26


get#

â–¸ get(key: string): Promise<Hook>

Parameters#

NameType
keystring

Returns: Promise<Hook>

Implementation of: DB

Defined in: db/redis.ts:11


getDB#

â–¸ getDB(): Promise<Hook[]>

Returns: Promise<Hook[]>

Implementation of: DB

Defined in: db/redis.ts:14