loading-cache-in-memory
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

LoadingCache

LoadingCache is a generic utility that simplifies data access with a consistent API for any data source, such as databases or services, reducing requests to those sources by automatically reading-through data into caches with a pluggable implementation.

Usage

import { LoadingCache } from 'loading-cache-in-memory'

// set up a Map cache store
const cacheStore = new Map()

new LoadingCache(myFetchAll, cacheStore)

This package is a thin wrapper around the loading-cache npm package to facilitate usage with an in-memory Map as the cache. Refer to the documentation for the main package here.

Build Status npm version

Readme

Keywords

none

Package Sidebar

Install

npm i loading-cache-in-memory

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

5.28 kB

Total Files

8

Last publish

Collaborators

  • louca.developer