interface IStorage { clear(): Promise<void>; get(key: string): Promise<null | string>; keys(): Promise<string[]>; length(): Promise<number>; remove(key: string): Promise<void>; set(key: string,
value: string): Promise<string>; } Methods
clear
- clear(): Promise<void>
Returns Promise<void>
get
- get(key): Promise<null | string>
Returns Promise<null | string>
keys
- keys(): Promise<string[]>
Returns Promise<string[]>
length
- length(): Promise<number>
Returns Promise<number>
remove
- remove(key): Promise<void>
Returns Promise<void>
set
- set(key, value): Promise<string>
Returns Promise<string>
Generic storage interface