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

cache-manager-ioredis-yet

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager-ioredis-yet - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

dist/index.js

@@ -93,3 +93,3 @@ "use strict";

},
ttl: (key) => __awaiter(this, void 0, void 0, function* () { return redisCache.ttl(key); }),
ttl: (key) => __awaiter(this, void 0, void 0, function* () { return redisCache.pttl(key); }),
keys: (pattern = '*') => keys(pattern),

@@ -96,0 +96,0 @@ reset,

@@ -14,3 +14,3 @@ {

"description": "Redis store for node-cache-manager updated",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",

@@ -30,3 +30,3 @@ "main": "dist/index.js",

"dependencies": {
"cache-manager": "^5.2.2",
"cache-manager": "^5.2.3",
"ioredis": "^5.3.2"

@@ -33,0 +33,0 @@ },

@@ -91,3 +91,3 @@ import Redis, {

},
ttl: async (key) => redisCache.ttl(key),
ttl: async (key) => redisCache.pttl(key),
keys: (pattern = '*') => keys(pattern),

@@ -94,0 +94,0 @@ reset,

@@ -230,3 +230,4 @@ import { describe, expect, it, beforeEach } from 'vitest';

await redisCache.set('foo', 'bar', ttl);
await expect(redisCache.store.ttl('foo')).resolves.toEqual(ttl / 1000);
const expected = await redisCache.store.ttl('foo');
expect(expected <= ttl && expected >= ttl - 10).toBeTruthy();

@@ -233,0 +234,0 @@ await redisCache.set('foo', 'bar', 0);

Sorry, the diff of this file is not supported yet

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