2.0.74 • Published 9 days ago
@anchan828/nest-cache-manager-async-local-storage v2.0.74
@anchan828/nest-cache-manager-async-local-storage
Description
AsyncLocalStorage store for node-cache-manager.
Installation
$ npm i --save @anchan828/nest-cache-manager-async-local-storage
Quick Start
import { asyncLocalStorageStore } from "@anchan828/nest-cache-manager-async-local-storage";
import { caching } from "cache-manager";
const asyncLocalStorage = new AsyncLocalStorage<Map<string, any>>();
const cache = caching({
store: asyncLocalStorageStore,
asyncLocalStorage,
});
asyncLocalStorage.run(new Map<string, any>(), () => {
cache.get("key");
});
Notes
- This package is a cache function that is enabled only during a request using AsyncLocalStorage.
- It is useful when the same data is retrieved from the database many times during a request, although it does not need to be cached permanently, such as in memory or Redis.
License
2.0.74
9 days ago
2.0.73
16 days ago
2.0.72
23 days ago
2.0.71
1 month ago
2.0.70
1 month ago
2.0.69
1 month ago
2.0.68
2 months ago
2.0.67
2 months ago
2.0.66
2 months ago
2.0.65
2 months ago
2.0.64
3 months ago
2.0.63
3 months ago
2.0.62
3 months ago
2.0.61
3 months ago
2.0.60
4 months ago
2.0.59
4 months ago
2.0.58
5 months ago
2.0.57
5 months ago
2.0.55
5 months ago
2.0.56
5 months ago
2.0.53
6 months ago
2.0.54
6 months ago
2.0.52
6 months ago
2.0.51
6 months ago
2.0.37
10 months ago
2.0.38
9 months ago
2.0.35
10 months ago
2.0.36
10 months ago
2.0.34
10 months ago
2.0.50
7 months ago
2.0.39
9 months ago
2.0.48
7 months ago
2.0.49
7 months ago
2.0.46
8 months ago
2.0.47
7 months ago
2.0.44
8 months ago
2.0.45
8 months ago
2.0.42
8 months ago
2.0.43
8 months ago
2.0.40
9 months ago
2.0.41
9 months ago
2.0.33
11 months ago
2.0.31
11 months ago
2.0.32
11 months ago
2.0.30
12 months ago
2.0.28
1 year ago
2.0.29
12 months ago
2.0.27
1 year ago
2.0.26
1 year ago
2.0.24
1 year ago
2.0.25
1 year ago
2.0.22
1 year ago
2.0.23
1 year ago
2.0.20
1 year ago
2.0.21
1 year ago
2.0.19
1 year ago
2.0.18
1 year ago
2.0.17
1 year ago