Class: MemoryDB
#
Implements#
Constructors#
constructor+ new MemoryDB(db
: MemoryDBType): MemoryDB
#
ParametersName | Type |
---|---|
db | MemoryDBType |
Returns: MemoryDB
Defined in: db/memory.ts:4
#
Properties#
db• db: MemoryDBType
Defined in: db/memory.ts:4
#
Methods#
addâ–¸ add(key
: string, url
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/memory.ts:37
#
deleteKeyâ–¸ deleteKey(key
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/memory.ts:21
#
deleteUrlâ–¸ deleteUrl(key
: string, url
: string): Promise<boolean>
#
ParametersName | Type |
---|---|
key | string |
url | string |
Returns: Promise<boolean>
Implementation of: DB
Defined in: db/memory.ts:28
#
getâ–¸ get(key
: string): Promise<Hook>
#
ParametersName | Type |
---|---|
key | string |
Returns: Promise<Hook>
Implementation of: DB
Defined in: db/memory.ts:10
#
getDBâ–¸ getDB(): Promise<Hook[]>
Returns: Promise<Hook[]>
Implementation of: DB
Defined in: db/memory.ts:13