2.0.0 • Published 8 years ago
ilp-store-wrapper
Licence
ISC
Version
2.0.0
Deps
0
Size
10 kB
Vulns
0
Weekly
0
ILP Store Wrapper
Synchronous wrapper around ILP store
The constructor takes an ILP store.
const wrappedStore = new StoreWrapper(store)
.load(key) -> Promise<null>will read a key asynchronously into the cache..get(key) -> valuewill synchronously read from the cache..set(key, value) -> nullwill synchronously write to the cache and queue a write to the store (with order guaranteed)..delete(key) -> nullwill synchronously delete from the cache and queue a delete to the store (with order guaranteed)..setCache(key, value) -> nullwill synchronously write to the cache and NOT queue any write to the store.