1.0.3 • Published 2 years ago
memory-card v1.0.3
MEMORY CARD
Memory Card is an Easy to Use Key/Value Store, with Swagger API Backend & Serialization Support.
API
/**
* ES6 Map like Async API
*/
export interface AsyncMap<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 AsyncMap { ... }
1. load()
2. save()
3. destroy()
4. sub()
TODO
- Swagger API Backend Support
- toJSON Serializable with Metadata
CHANGELOG
v0.4 master (July 2018)
- Add
multiplex()
method to Multiplex MemoryStore to sub-MemoryStores.
v0.2 (June 2018)
- Unit Testing
- NPM Pack Testing
- DevOps to NPM with
@next
tag support for developing branch
v0.0 May 31st, 2018
- Promote
Profile
of Wechaty to SOLO NPM Module:MemoryCard
- Update the API to ES6
Map
-like, the difference is that MemoryCard is all Async.
AUTHOR
Huan LI \zixia@zixia.net\ (http://linkedin.com/in/zixia)
COPYRIGHT & LICENSE
- Code & Docs © 2017 Huan LI \zixia@zixia.net\
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
1.0.2
2 years ago
1.1.2
2 years ago
1.0.3
2 years ago
0.13.5
3 years ago
0.13.4
3 years ago
0.12.2
3 years ago
0.9.5
4 years ago
0.10.1
4 years ago
0.9.4
4 years ago
0.9.3
4 years ago
0.9.2
4 years ago
0.9.1
4 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.21
5 years ago
0.6.17
5 years ago
0.6.16
5 years ago
0.6.15
5 years ago
0.6.13
5 years ago
0.6.9
6 years ago
0.6.8
6 years ago
0.6.7
6 years ago
0.6.6
6 years ago
0.6.5
6 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.5.6
6 years ago
0.5.5
6 years ago
0.5.4
6 years ago
0.5.1
6 years ago
0.4.10
6 years ago
0.4.9
6 years ago
0.4.6
6 years ago
0.4.5
6 years ago
0.4.4
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.2.0
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago