17.2.0 • Published 7 months ago

@type-cacheable/redis-adapter v17.2.0

Weekly downloads
2,434
License
MIT
Repository
github
Last release
7 months ago

@type-cacheable/redis-adapter

npm downloads

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

View full documentation

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

17.2.0

7 months ago

17.1.0

11 months ago

17.0.1

1 year ago

17.0.0

1 year ago

16.1.0

1 year ago

15.0.2

2 years ago

16.0.1

2 years ago

16.0.0

2 years ago

15.0.1

2 years ago

15.0.0

2 years ago

14.1.0

2 years ago

14.1.1

2 years ago

14.0.0

3 years ago

14.0.1

3 years ago

14.0.2

3 years ago

13.0.0

3 years ago

12.1.0

3 years ago

12.0.1

3 years ago

12.0.0

3 years ago

11.0.0

4 years ago

10.0.2

4 years ago

10.0.1

4 years ago

10.0.0

4 years ago

9.2.0

4 years ago

9.1.1

4 years ago

9.1.0

5 years ago

9.0.1

5 years ago

8.0.6

5 years ago

8.0.5

5 years ago

8.0.3

5 years ago

8.0.4

5 years ago

8.0.1

5 years ago

8.0.0

5 years ago

7.0.0

5 years ago

6.2.0

5 years ago

6.1.0

5 years ago

6.0.0

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago