Class: RedisDB
#
Implements#
Constructors#
constructor+ new RedisDB(redisClient
: Redis): RedisDB
#
ParametersName | Type |
---|---|
redisClient | Redis |
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>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/redis.ts:29
#
deleteKeyâ–¸ deleteKey(key
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/redis.ts:23
#
deleteUrlâ–¸ deleteUrl(key
: string, url
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/redis.ts:26
#
getâ–¸ get(key
: string): Promise<Hook>
#
ParametersName | Type |
---|---|
key | string |
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