MemoryLruGarbageCollector interface

A garbage collector deletes Least-Recently-Used documents in multiple batches.

This collector is configured with a target size, and will only perform collection when the cached documents exceed the target size. It avoids querying backend repeated for the same query or document, at the risk of having a larger memory footprint.

Use factory function to create a instance of this collector.

Signature:

export declare interface MemoryLruGarbageCollector 

Properties

Property Type Description
kind 'memoryLru'

MemoryLruGarbageCollector.kind

Signature:

kind: 'memoryLru';