File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Simple and extensible caching module supporting decorators
9
9
10
10
<!-- TOC depthTo:2 -->
11
11
12
- - [ node-ts-cache] ( #with-decorator )
13
12
- [ Install] ( #install )
14
13
- [ Usage] ( #usage )
15
14
- [ With decorator] ( #with-decorator )
@@ -24,7 +23,7 @@ Simple and extensible caching module supporting decorators
24
23
# Install
25
24
26
25
``` bash
27
- npm install --save node-ts-cache
26
+ npm install --save @ħokify/ node-ts-cache
28
27
```
29
28
30
29
# Usage
@@ -89,10 +88,11 @@ different input paramters and still cache each variation.
89
88
90
89
E.g.
91
90
``` ts
92
- import { MultiCache , ExpirationStrategy , MemoryStorage } from " @hokify/node-ts-cache" ;
91
+ import { MultiCache } from " @hokify/node-ts-cache" ;
92
+ import NodeCacheStorage from ' @hokify/node-ts-cache-node-cache-storage' ;
93
93
import RedisIOStorage from ' @hokify/node-ts-cache-redisio-storage' ;
94
94
95
- const localStrategy = new MemoryStorage ();
95
+ const localStrategy = new NodeCacheStorage ();
96
96
const centralStrategy = new RedisIOStorage ({/* ..*/ });
97
97
98
98
class MyService {
You can’t perform that action at this time.
0 commit comments