Memory Card is an Easy to Use Key/Value Store, with Swagger API Backend & Serialization Support.
/**
* ES6 Map like Async API
*/
export interface AsyncMapLike<K = any, V = any> {
size: Promise<number>
[Symbol.asyncIterator](): AsyncIterableIterator<[K, V]>
entries() : AsyncIterableIterator<[K, V]>
keys () : AsyncIterableIterator<K>
values () : AsyncIterableIterator<V>
get (key: K) : Promise<V | undefined>
set (key: K, value: V) : Promise<void>
has (key: K) : Promise<boolean>
delete (key: K) : Promise<void>
clear () : Promise<void>
}
export class MemoryCard implements AsyncMapLike { ... }
MemoryCard
is an AsyncMapLike interface
multiplex()
method to Multiplex MemoryStore to sub-MemoryStores.@next
tag support for developing branchProfile
of Wechaty to SOLO NPM Module: MemoryCard
Map
-like, the difference is that MemoryCard is all Async.