Merged in fix/redis-onerror (pull request #3218)

feat(BOOK-603): better logging and delete with unlinke intead of del

* feat(BOOK-603): better logging and delete with unlinke intead of del


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-11-26 09:36:38 +00:00
parent 250b1f2eac
commit a2d9010c8f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const cacheRoutes = new Elysia({ prefix: "/cache" })
const output = JSON.parse(value);
return { data: output };
} catch (e) {
redis.del(key);
redis.unlink(key);
cacheRouteLogger.error(`Invalid JSON in cache for '${key}'`, e);
Sentry.captureException(e, {