@type-cacheable/redis-adapter v17.0.1
@type-cacheable/redis-adapter
TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the redis
client.
Usage
Installation
npm install --save @type-cacheable/core @type-cacheable/redis-adapter
Note: If you are using redis
v3.x.x, use @type-cacheable/redis-adapter
v10.x.x. If you are using redis
v4.x.x, use @type-cacheable/redis-adapter
v11.x.x+.
or
yarn add @type-cacheable/core @type-cacheable/redis-adapter
Using adapter
import Redis from 'redis';
import { useAdapter } from '@type-cacheable/redis-adapter';
const client = Redis.createClient();
const clientAdapter = useAdapter(client);
Then you can rely on the @Cacheable
, @CacheUpdate
, and @CacheClear
decorators from @type-cacheable/core
. See core documentation
3 months ago
3 months ago
3 months ago
9 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago