cache-manager
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -28,3 +28,3 @@ import { MemoryCache, MemoryConfig } from './stores'; | ||
reset: () => Promise<void>; | ||
wrap<T>(key: string, fn: () => Promise<T>): Promise<T>; | ||
wrap<T>(key: string, fn: () => Promise<T>, ttl?: Ttl): Promise<T>; | ||
store: S; | ||
@@ -31,0 +31,0 @@ }; |
{ | ||
"name": "cache-manager", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Cache module for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -57,3 +57,3 @@ # node-cache-manager [![npm version](https://badge.fury.io/js/cache-manager.svg)](https://www.npmjs.com/package/cache-manager) [![codecov](https://codecov.io/gh/node-cache-manager/node-cache-manager/branch/master/graph/badge.svg?token=ZV3G5IFigq)](https://codecov.io/gh/node-cache-manager/node-cache-manager) | ||
```typescript | ||
await memoryCache.mset( | ||
await memoryCache.store.mset( | ||
[ | ||
@@ -66,7 +66,7 @@ ['foo', 'bar'], | ||
console.log(await memoryCache.mget('foo', 'foo2')); | ||
console.log(await memoryCache.store.mget('foo', 'foo2')); | ||
// >> ['bar', 'bar2'] | ||
// Delete keys with mdel() passing arguments... | ||
await memoryCache.mdel('foo', 'foo2'); | ||
await memoryCache.store.mdel('foo', 'foo2'); | ||
``` | ||
@@ -105,2 +105,10 @@ | ||
### Oficial and updated to last version | ||
- [node-cache-manager-redis-yet](https://github.com/node-cache-manager/node-cache-manager-redis-yet) (uses [node_redis](https://github.com/NodeRedis/node_redis)) | ||
- [node-cache-manager-ioredis-yet](https://github.com/node-cache-manager/node-cache-manager-ioredis-yet) (uses [ioredis](https://github.com/luin/ioredis)) | ||
### Third party | ||
- [node-cache-manager-redis](https://github.com/dial-once/node-cache-manager-redis) (uses [sol-redis-pool](https://github.com/joshuah/sol-redis-pool)) | ||
@@ -112,4 +120,2 @@ | ||
- [node-cache-manager-redis-yet](https://github.com/node-cache-manager/node-cache-manager-redis-yet) (uses [node_redis](https://github.com/NodeRedis/node_redis)) | ||
- [node-cache-manager-mongodb](https://github.com/v4l3r10/node-cache-manager-mongodb) | ||
@@ -116,0 +122,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67734
143