@ty-ras-extras/cache
v2.0.0
Published
Light-weight cache API and implementation with `Map`.
Downloads
115
Readme
Typesafe REST API Specification Extras - Async Value Caching
This folder contains functions which allow creation of objects usable for caching asynchronously (via Promise
) acquireable values.
The module entrypoints are createInMemoryAsyncCache
for caching anything which has a string
key.
Additionally, createInMemoryBiDiAsyncCache
is also exposed, for bidirectionally caching string
s which are both keys and values, and are both unique.