summaryrefslogtreecommitdiff
path: root/packages/backend/src/misc/cache.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2024-02-16 15:19:55 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2024-02-16 15:19:55 +0900
commitf8ac072bc3c7072fa119e267c6765a8f27b9bca8 (patch)
treec028c8b707a2d61897b1e0f95c344fe9dc1cb2f6 /packages/backend/src/misc/cache.ts
parentfix (diff)
downloadsharkey-f8ac072bc3c7072fa119e267c6765a8f27b9bca8.tar.gz
sharkey-f8ac072bc3c7072fa119e267c6765a8f27b9bca8.tar.bz2
sharkey-f8ac072bc3c7072fa119e267c6765a8f27b9bca8.zip
fix type
Diffstat (limited to 'packages/backend/src/misc/cache.ts')
-rw-r--r--packages/backend/src/misc/cache.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/misc/cache.ts b/packages/backend/src/misc/cache.ts
index 4cde6e12d3..7f4d1521b5 100644
--- a/packages/backend/src/misc/cache.ts
+++ b/packages/backend/src/misc/cache.ts
@@ -189,7 +189,7 @@ export class RedisSingleCache<T> {
export class MemoryKVCache<T> {
public cache: Map<string, { date: number; value: T; }>;
private lifetime: number;
- private gcIntervalHandle: NodeJS.Timer;
+ private gcIntervalHandle: NodeJS.Timeout;
constructor(lifetime: MemoryKVCache<never>['lifetime']) {
this.cache = new Map();