cache-manager-ioredis-yet
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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
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
59501
605
Updatedcache-manager@^5.2.3