17.0.1 • Published 3 months ago
@type-cacheable/lru-cache-adapter v17.0.1
@type-cacheable/lru-cache-adapter
TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the lru-cache
client.
Usage
Installation
npm install --save @type-cacheable/core @type-cacheable/lru-cache-adapter
or
yarn add @type-cacheable/core @type-cacheable/lru-cache-adapter
Using adapter
import { LRUCache } from 'lru-cache';
import { useAdapter } from '@type-cacheable/lru-cache-adapter';
const client = new LRUCache<string, any>();
const clientAdapter = useAdapter(client);
Then you can rely on the @Cacheable
, @CacheUpdate
, and @CacheClear
decorators from @type-cacheable/core
. See core documentation
17.0.1
3 months ago
17.0.0
3 months ago
16.1.0
3 months ago
15.0.0
9 months ago
16.0.1
8 months ago
16.0.0
8 months ago
14.0.1
1 year ago
14.0.0
1 year ago
12.1.0
1 year ago
13.0.0
1 year ago
12.0.0
2 years ago
12.0.1
1 year ago
12.0.2
1 year ago
11.0.2
2 years ago
11.0.3
2 years ago
11.0.1
2 years ago
11.0.0
2 years ago
10.0.3
2 years ago
10.0.2
3 years ago
10.0.1
3 years ago
10.0.0
3 years ago
9.2.0
3 years ago
9.1.1
3 years ago
9.1.0
3 years ago
9.0.1
3 years ago
8.0.5
4 years ago
8.0.4
4 years ago
8.0.3
4 years ago
8.0.1
4 years ago
8.0.0
4 years ago