| Package | Description |
|---|---|
| org.rocksdb |
| Modifier and Type | Class and Description |
|---|---|
class |
ClockCache
Deprecated.
The old Clock Cache implementation had an unresolved bug and
has been removed. The new HyperClockCache requires an additional
configuration parameter that is not provided by this API. This function
simply returns a new LRUCache for functional compatibility.
|
class |
HyperClockCache
HyperClockCache - A lock-free Cache alternative for RocksDB block cache
that offers much improved CPU efficiency vs.
|
class |
LRUCache
Least Recently Used Cache
|
| Modifier and Type | Method and Description |
|---|---|
Cache |
DBOptions.rowCache() |
Cache |
Options.rowCache() |
Cache |
DBOptionsInterface.rowCache()
A global cache for table-level rows.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnFamilyOptions |
ColumnFamilyOptions.optimizeForSmallDb(Cache cache) |
Options |
Options.optimizeForSmallDb(Cache cache) |
T |
ColumnFamilyOptionsInterface.optimizeForSmallDb(Cache cache)
Some functions that make it easier to optimize RocksDB
Use this if your DB is very small (like under 1GB) and you don't want to
spend lots of memory for memtables.
|
BlockBasedTableConfig |
BlockBasedTableConfig.setBlockCache(Cache blockCache)
Use the specified cache for blocks.
|
DBOptions |
DBOptions.setRowCache(Cache rowCache) |
Options |
Options.setRowCache(Cache rowCache) |
T |
DBOptionsInterface.setRowCache(Cache rowCache)
A global cache for table-level rows.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<MemoryUsageType,Long> |
MemoryUtil.getApproximateMemoryUsageByType(List<RocksDB> dbs,
Set<Cache> caches)
Returns the approximate memory usage of different types in the input
list of DBs and Cache set.
|
| Constructor and Description |
|---|
WriteBufferManager(long bufferSizeBytes,
Cache cache) |
WriteBufferManager(long bufferSizeBytes,
Cache cache,
boolean allowStall)
Construct a new instance of WriteBufferManager.
|
Copyright © 2012–2026 Facebook. All rights reserved.