We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44df1f commit df130c4Copy full SHA for df130c4
packages/nextjs-cache-handler/src/handlers/redis-strings.ts
@@ -252,15 +252,12 @@ export default function createHandler({
252
let expireOperation: Promise<boolean> | undefined;
253
const lifespan = cacheHandlerValue.lifespan;
254
255
- const setTagsOperation =
256
- cacheHandlerValue.tags.length > 0
257
- ? client.hSet(
258
- options,
259
- keyPrefix + sharedTagsKey,
260
- key,
261
- JSON.stringify(cacheHandlerValue.tags),
262
- )
263
- : undefined;
+ const setTagsOperation = client.hSet(
+ options,
+ keyPrefix + sharedTagsKey,
+ key,
+ JSON.stringify(cacheHandlerValue.tags | []),
+ );
264
265
const setSharedTtlOperation = lifespan
266
? client.hSet(
0 commit comments