MemoryLruGarbageCollector interface
Stay organized with collections
Save and categorize content based on your preferences.
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';
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-27 UTC.
[null,null,["Last updated 2023-04-27 UTC."],[],[],null,["A garbage collector deletes Least-Recently-Used documents in multiple batches.\n\nThis 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.\n\nUse factory function to create a instance of this collector.\n\n**Signature:** \n\n export declare interface MemoryLruGarbageCollector \n\nProperties\n\nMemoryLruGarbageCollector.kind\n\n**Signature:** \n\n kind: 'memoryLru';"]]