public class CacheManager extends Object
MemorySegment
s.Modifier and Type | Field and Description |
---|---|
static int |
REFRESH_COUNT
Refreshing the cache comes with some costs, so not every time we visit the CacheManager, but
every 10 visits, refresh the LRU strategy.
|
Constructor and Description |
---|
CacheManager(MemorySize maxMemorySize) |
Modifier and Type | Method and Description |
---|---|
org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,?> |
cache() |
int |
fileReadCount() |
MemorySegment |
getPage(CacheKey key,
CacheReader reader,
CacheCallback callback) |
void |
invalidPage(CacheKey key) |
public static final int REFRESH_COUNT
public CacheManager(MemorySize maxMemorySize)
@VisibleForTesting public org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,?> cache()
public MemorySegment getPage(CacheKey key, CacheReader reader, CacheCallback callback)
public void invalidPage(CacheKey key)
public int fileReadCount()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.