mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
refactor: eslint and prettier conflict will be resolved and formatted
This commit is contained in:
@@ -32,7 +32,11 @@ export function getCachedMetadata(key: string): VideoMetadata | null {
|
||||
return entry.value;
|
||||
}
|
||||
|
||||
export function setCachedMetadata(key: string, value: VideoMetadata, ttlMs: number = DEFAULT_TTL_MS): void {
|
||||
export function setCachedMetadata(
|
||||
key: string,
|
||||
value: VideoMetadata,
|
||||
ttlMs: number = DEFAULT_TTL_MS
|
||||
): void {
|
||||
cache.set(key, { value, expiresAt: Date.now() + ttlMs });
|
||||
pruneIfNeeded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user