| Constructor and Description |
|---|
TinyLfu(Config config,
PolicyStats policyStats) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
admit(long candidateKey,
long victimKey)
Returns if the candidate should be added to the cache and the page replacement policy's chosen
victim should be removed.
|
int |
frequency(long key) |
void |
record(long key)
Records the access to the entry.
|
public TinyLfu(Config config, PolicyStats policyStats)
public int frequency(long key)
public void record(long key)
Admittorpublic boolean admit(long candidateKey,
long victimKey)
Admittor