From d7b1b7b9c890cf0d249b7cbadff92da15071c223 Mon Sep 17 00:00:00 2001 From: Bernd Storath Date: Wed, 3 Jun 2026 10:36:09 +0200 Subject: [PATCH] specify unit for cache function --- src/server/utils/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils/cache.ts b/src/server/utils/cache.ts index 000ca6e3..f5a12c32 100644 --- a/src/server/utils/cache.ts +++ b/src/server/utils/cache.ts @@ -6,7 +6,7 @@ type Opts = { }; /** - * Cache the result of a function for the given expiry time + * Cache the result of a function for the given expiry time in milliseconds */ export function cacheFunction(fn: () => T, { expiry }: Opts): () => T { let cache: { value: T; expiry: number } | null = null;