@type-cacheable/node-cache-adapter
TypeScript icon, indicating that this package has built-in type declarations

14.1.0 • Public • Published

@type-cacheable/node-cache-adapter

npm downloads

TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the node-cache client.

View full documentation

Usage

Installation

npm install --save @type-cacheable/core @type-cacheable/node-cache-adapter

or

yarn add @type-cacheable/core @type-cacheable/node-cache-adapter

Using adapter

import NodeCache from 'node-cache';
import { useAdapter } from '@type-cacheable/node-cache-adapter';

const client = new NodeCache();
const clientAdapter = useAdapter(client);

Then you can rely on the @Cacheable, @CacheUpdate, and @CacheClear decorators from @type-cacheable/core. See core documentation

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
14.1.0546latest

Version History

VersionDownloads (Last 7 Days)Published
14.1.0546
14.0.1913
14.0.00
13.1.00
13.0.15
13.0.00
12.0.11,318
12.0.00
11.1.10
11.1.00
11.0.20
11.0.10
11.0.00
10.0.690
10.0.50
10.0.41
10.0.30
10.0.20
10.0.10
10.0.00
9.2.01,014
9.1.10
9.1.0108
9.0.10
8.0.51,726
8.0.40
8.0.30
8.0.10
8.0.00
7.0.00
6.2.00
6.1.00
6.0.00
5.2.00
5.1.00
5.0.10
5.0.00

Package Sidebar

Install

npm i @type-cacheable/node-cache-adapter

Weekly Downloads

5,721

Version

14.1.0

License

MIT

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • joshuaslate