Skip to content

Commit 811a668

Browse files
committed
docs: add multicache and synccache to docs
1 parent 86a999c commit 811a668

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ts-cache/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Simple and extensible caching module supporting decorators
99

1010
<!-- TOC depthTo:2 -->
1111

12-
- [node-ts-cache](#with-decorator)
1312
- [Install](#install)
1413
- [Usage](#usage)
1514
- [With decorator](#with-decorator)
@@ -24,7 +23,7 @@ Simple and extensible caching module supporting decorators
2423
# Install
2524

2625
```bash
27-
npm install --save node-ts-cache
26+
npm install --save @ħokify/node-ts-cache
2827
```
2928

3029
# Usage
@@ -89,10 +88,11 @@ different input paramters and still cache each variation.
8988

9089
E.g.
9190
```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';
9393
import RedisIOStorage from '@hokify/node-ts-cache-redisio-storage';
9494

95-
const localStrategy = new MemoryStorage();
95+
const localStrategy = new NodeCacheStorage();
9696
const centralStrategy = new RedisIOStorage({/*..*/});
9797

9898
class MyService {

0 commit comments

Comments
 (0)