@type-cacheable/ioredis-adapter
v16.0.1
Published
Adapter for using ioredis with type-cacheable
Readme
@type-cacheable/ioredis-adapter
TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the ioredis client.
Usage
Installation
npm install --save @type-cacheable/core @type-cacheable/ioredis-adapteror
yarn add @type-cacheable/core @type-cacheable/ioredis-adapterUsing adapter
import IoRedis from 'ioredis';
import { useAdapter } from '@type-cacheable/ioredis-adapter';
const client = new IoRedis();
const clientAdapter = useAdapter(client);Then you can rely on the @Cacheable, @CacheUpdate, and @CacheClear decorators from @type-cacheable/core. See core documentation
