Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-manager

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

dist/caching.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc