@knaus94/prisma-extension-cache-manager 1.5.66 → 1.5.67

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -195,7 +195,7 @@ exports.default = ({ cache, debug, ttl: defaultTTL }) => {
195
195
  try {
196
196
  const encoded = serialize(result);
197
197
  await (ttl && ttl > 0
198
- ? cache.store.client.set(cacheKey, encoded, "EX", ttl)
198
+ ? cache.store.client.set(cacheKey, encoded, "EX", ttl / 1000)
199
199
  : await cache.store.client.set(cacheKey, encoded));
200
200
  if (debug) {
201
201
  console.log("Data cached with key (function):", cacheKey, "encoded:", encoded, "decoded:", result);
@@ -252,7 +252,7 @@ exports.default = ({ cache, debug, ttl: defaultTTL }) => {
252
252
  try {
253
253
  const encoded = serialize(result);
254
254
  await (ttl && ttl > 0
255
- ? cache.store.client.set(cacheKey, encoded, "EX", ttl)
255
+ ? cache.store.client.set(cacheKey, encoded, "EX", ttl / 1000)
256
256
  : await cache.store.client.set(cacheKey, encoded));
257
257
  if (debug) {
258
258
  console.log("Data cached with key:", cacheKey, "encoded:", encoded, "decoded:", result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knaus94/prisma-extension-cache-manager",
3
- "version": "1.5.66",
3
+ "version": "1.5.67",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/knaus94/prisma-extension-cache-manager.git"