Skip to main content

Class: MemoryDB

Implements#

Constructors#

constructor#

+ new MemoryDB(db: MemoryDBType): MemoryDB

Parameters#

NameType
dbMemoryDBType

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>

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/memory.ts:37


deleteKey#

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

Parameters#

NameType
keystring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/memory.ts:21


deleteUrl#

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

Parameters#

NameType
keystring
urlstring

Returns: Promise<boolean>

Implementation of: DB

Defined in: db/memory.ts:28


get#

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

Parameters#

NameType
keystring

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