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

15.0.1 • Public • Published

@type-cacheable/ioredis-adapter

npm downloads

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

View full documentation

Usage

Installation

npm install --save @type-cacheable/core @type-cacheable/ioredis-adapter

or

yarn add @type-cacheable/core @type-cacheable/ioredis-adapter

Using 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

Package Sidebar

Install

npm i @type-cacheable/ioredis-adapter

Weekly Downloads

5,314

Version

15.0.1

License

MIT

Unpacked Size

15 kB

Total Files

6

Last publish

Collaborators

  • joshuaslate