Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cache/_serialize_arg_list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018-2026 the Deno authors. MIT license.
import type { MemoizationCache } from "./memoize.ts";
import type { CacheLike } from "./cache.ts";

/**
* Default serialization of arguments list for use as cache keys. Equivalence
Expand All @@ -11,7 +11,7 @@ import type { MemoizationCache } from "./memoize.ts";
* @returns `getKey`, the function for getting cache keys.
*/
export function _serializeArgList<Return>(
cache: MemoizationCache<unknown, Return>,
cache: CacheLike<unknown, Return>,
): (this: unknown, ...args: unknown[]) => string {
// Three cooperating data structures track weak (reference-type) arguments:
// 1. weakKeyToKeySegmentCache: WeakMap from object/symbol → segment id
Expand Down
Loading
Loading