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

14.0.1 • 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

Package Sidebar

Install

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

Weekly Downloads

3,410

Version

14.0.1

License

MIT

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • joshuaslate