{"repo":"badbatch/cachemap","free":true,"listed":false,"github":"https://github.com/badbatch/cachemap","clone":"git clone https://github.com/badbatch/cachemap.git","description":"An extensible, isomorphic cache with modules to interface with Redis, LocalStorage, IndexedDB and an in-memory Map.","language":"TypeScript","stars":19,"topics":["cache","redis","localstorage","isomorphic","indexeddb","cachemap"],"license":"MIT","category":"databases-storage","readme_excerpt":"cachemap An extensible, isomorphic cache with modules to interface with Redis, web storage, IndexedDB and an in-memory Map. Summary Use Redis or an in-memory Map on the server. Use LocalStorage, SessionStorage, IndexedDB or an in-memory Map on the client. Extend with custom modules to interface with key/value databases of your choosing. Save data as string, base64 encoded or encrypted. Transfer entries from one Cachemap to another. Store entries alongside cache-control directives. Cache-control directives used to derive whether entries are fresh or stale. Prioritize entries based on metadata stored against each entry. Use a reaper to cull stale entries at specified intervals. Set maximum memory size for total entries. Use on browser's main or worker thread. Installation Cachemap is structured as a monorepo so each package is published to npm under the @cachemap scope and can be installed in a project in the same way as any other npm package. So, for example, if you want a server cache that uses Redis you would install the packages below. If, however, you want a persisted client cache that uses IndexedDB and culls stale data you would install the following packages. Packages The Cachemap's multi-package structure allows you to compose your cache of the modules you need, without additional bloat. Start with the @cachemap/core package and build out from there. @cachemap/controller @cachemap/core @cachemap/core-worker @cachemap/indexed-db @cachemap/web-storage @cachemap/map @cach","default_branch":null,"files":null,"tree":[],"storefront":"/r/badbatch","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/badbatch/cachemap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}