@type-cacheable/core

TypeScript-based caching decorators

Stats

StarsIssuesVersionUpdatedCreatedSize
@type-cacheable/core
86810.0.38 days ago2 years agoMinified + gzip package size for @type-cacheable/core in KB

Readme

@type-cacheable/core

TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. Currently supports Redis (redis, ioredis), lru-cache, and node-cache. If you would like to see more adapters added, please open an issue or, better yet, a pull request with an implementation.

To learn how to set up an adapter for your cache of choice, view the full documentation.

Usage

Installation

npm install --save @type-cacheable/core

or

yarn add @type-cacheable/core

Adapter setup

You will need to set up the appropriate adapter for your cache of choice.

Redis:

LRU-Cache

Node-Cache:

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.