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?: {
[src]cacheSizeBytes?: number;
}): MemoryLruGarbageCollector