@cacheable/node-cache 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -290,13 +290,13 @@ await cache.get('foo'); // 'bar'
290
290
  Here is an example of how to use the `NodeCacheStore` with a primary and secondary storage adapter:
291
291
 
292
292
  ```javascript
293
- import {NodeStorageCache} from '@cacheable/node-cache';
293
+ import {NodeCacheStore} from '@cacheable/node-cache';
294
294
  import {Keyv} from 'keyv';
295
295
  import {KeyvRedis} from '@keyv/redis';
296
296
 
297
297
  const primary = new Keyv(); // In-memory storage as primary
298
298
  const secondary = new Keyv({store: new KeyvRedis('redis://user:pass@localhost:6379')});
299
- const cache = new NodeStorageCache({primary, secondary});
299
+ const cache = new NodeCacheStore({primary, secondary});
300
300
 
301
301
  // with storage you have the same functionality as the NodeCache but will be using async/await
302
302
  await cache.set('foo', 'bar');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cacheable/node-cache",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Simple and Maintained fast NodeJS internal caching",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "hookified": "^1.12.0",
48
- "keyv": "^5.5.1",
49
- "cacheable": "^2.0.1"
48
+ "keyv": "^5.5.2",
49
+ "cacheable": "^2.0.2"
50
50
  },
51
51
  "files": [
52
52
  "dist",