Memory Card is an Easy to Use Key/Value Store, with Swagger API Backend & Serialization Support.
- It is design for using in distribution scenarios.
- It is NOT design for performance.
/**
* 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
- Swagger API Backend Support
- toJSON Serializable with Metadata
- Fix #39 by update AsyncMapLike to v1.0
- Release v1.0
- ES Module support
- Move S3 & OBS to peer dependency to reduce install size
- Add Etcd Storage support
- Support AWS S3 Cloud Storage
- Add
multiplex()
method to Multiplex MemoryStore to sub-MemoryStores.
- Unit Testing
- NPM Pack Testing
- DevOps to NPM with
@next
tag support for developing branch
- Promote
Profile
of Wechaty to SOLO NPM Module:MemoryCard
- Update the API to ES6
Map
-like, the difference is that MemoryCard is all Async.
- Code & Docs © 2017-now Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons