Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

memoryLruGarbageCollector

Creates an instance of MemoryLruGarbageCollector.

A target size can be specified as part of the setting parameter. The collector will start deleting documents once the cache size exceeds the given size. The default cache size is 40MB (40 * 1024 * 1024 bytes).

function memoryLruGarbageCollector(settings?: {
cacheSizeBytes?: number;
}
): MemoryLruGarbageCollector;
§
memoryLruGarbageCollector(settings?: {
cacheSizeBytes?: number;
}
): MemoryLruGarbageCollector
[src]

§Parameters

§
settings?: {
cacheSizeBytes?: number;
}
optional
[src]