public class ClockCache extends Cache
LRUCache, but based on the CLOCK algorithm with
better concurrent performance in some casesnativeHandle_owningHandle_| Constructor and Description |
|---|
ClockCache(long capacity)
Deprecated.
The old Clock Cache implementation had an unresolved bug and has been removed.
|
ClockCache(long capacity,
int numShardBits)
Deprecated.
The old Clock Cache implementation had an unresolved bug and has been removed.
|
ClockCache(long capacity,
int numShardBits,
boolean strictCapacityLimit)
Deprecated.
The old Clock Cache implementation had an unresolved bug and has been removed.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeInternal(long handle)
Deprecated.
|
getPinnedUsage, getUsagedisposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic ClockCache(long capacity)
capacity - The fixed size capacity of the cachepublic ClockCache(long capacity,
int numShardBits)
capacity - The fixed size capacity of the cachenumShardBits - The cache is sharded to 2^numShardBits shards,
by hash of the keypublic ClockCache(long capacity,
int numShardBits,
boolean strictCapacityLimit)
capacity - The fixed size capacity of the cachenumShardBits - The cache is sharded to 2^numShardBits shards,
by hash of the keystrictCapacityLimit - insert to the cache will fail when cache is fullprotected final void disposeInternal(long handle)
disposeInternal in class RocksObject