public class LRUCache extends Cache
nativeHandle_owningHandle_| 构造器和说明 |
|---|
LRUCache(long capacity)
Create a new cache with a fixed size capacity
|
LRUCache(long capacity,
int numShardBits)
Create a new cache with a fixed size capacity.
|
LRUCache(long capacity,
int numShardBits,
boolean strictCapacityLimit)
Create a new cache with a fixed size capacity.
|
LRUCache(long capacity,
int numShardBits,
boolean strictCapacityLimit,
double highPriPoolRatio)
Create a new cache with a fixed size capacity.
|
LRUCache(long capacity,
int numShardBits,
boolean strictCapacityLimit,
double highPriPoolRatio,
double lowPriPoolRatio)
Create a new cache with a fixed size capacity.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
disposeInternal(long handle) |
getPinnedUsage, getUsagedisposeInternal, getNativeHandleclose, disOwnNativeHandle, isOwningHandlepublic LRUCache(long capacity)
capacity - The fixed size capacity of the cachepublic LRUCache(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 LRUCache(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 fullpublic LRUCache(long capacity,
int numShardBits,
boolean strictCapacityLimit,
double highPriPoolRatio)
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 fullhighPriPoolRatio - percentage of the cache reserves for high priority
entriespublic LRUCache(long capacity,
int numShardBits,
boolean strictCapacityLimit,
double highPriPoolRatio,
double lowPriPoolRatio)
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 fullhighPriPoolRatio - percentage of the cache reserves for high priority
entrieslowPriPoolRatio - percentage of the cache reserves for low priority
entriesprotected final void disposeInternal(long handle)
disposeInternal 在类中 RocksObject