Key type.
Value type.
Cache entry type.
Whether GC is idle.
Number of managed entries.
Clear all managed entries.
Leaves entry without expiration, by un-managing it.
Manage entry expiration.
Register callback invoked when entry expires.
Notify GC about expiration change of the managed entry.
GarbageCollector implementation which evicts expired entries at regular interval (has no internal data structures).
Eviction timer will fire periodically at the interval specified by IntervalGarbageCollectorOptions.checkInterval. When it fires, it will iterate over IntervalGarbageCollectorOptions.iterateCount backend entries, check if any of them is expired and evict if so. After that, it will schedule running for next interval. On next run, it will continue iteration from the entry it will stopped on previous run.