Skip to content

Commit 24ba03a

Browse files
author
decobot
committed
removing incr
1 parent 86ecc3f commit 24ba03a

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Diff for: deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vitor/deco",
3-
"version": "1.110.6",
3+
"version": "1.110.7",
44
"lock": false,
55
"exports": {
66
".": "./mod.ts",

Diff for: runtime/caches/redis.ts

-13
Original file line numberDiff line numberDiff line change
@@ -118,22 +118,9 @@ export function create(redis: RedisConnection | null, namespace: string) {
118118
COMMAND_TIMEOUT,
119119
);
120120

121-
const req = typeof request === "string"
122-
? request
123-
: request instanceof URL
124-
? request.href
125-
: request.url;
126-
127-
await redis?.set(
128-
`${cacheKey}:request`,
129-
req,
130-
);
131-
132121
if (!result) {
133-
await redis?.incr(`${cacheKey}:misses`);
134122
return undefined;
135123
}
136-
await redis?.incr(`${cacheKey}:hits`);
137124
return await deserialize(result);
138125
} catch {
139126
return undefined;

0 commit comments

Comments
 (0)