Adapter for using node-cache with type-cacheable
npm install @type-cacheable/node-cache-adapter
TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the node-cache client.
``bash`
npm install --save @type-cacheable/core @type-cacheable/node-cache-adapter
or
`bash`
yarn add @type-cacheable/core @type-cacheable/node-cache-adapter
`ts
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