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 6037700 commit 53e05a0Copy full SHA for 53e05a0
packages/nextjs-cache-handler/src/handlers/redis-strings.ts
@@ -200,6 +200,21 @@ export default function createHandler({
200
return null;
201
}
202
203
+ const sharedTagKeyExists = await client.hExists(
204
+ getTimeoutRedisCommandOptions(timeoutMs),
205
+ keyPrefix + sharedTagsKey,
206
+ key,
207
+ );
208
+
209
+ if (!sharedTagKeyExists) {
210
+ await client.unlink(
211
212
+ keyPrefix + key,
213
214
215
+ return null;
216
+ }
217
218
const combinedTags = new Set([...cacheValue.tags, ...implicitTags]);
219
220
if (combinedTags.size === 0) {
0 commit comments