public class CacheManager extends Object
MemorySegment
s.Modifier and Type | Class and Description |
---|---|
static class |
CacheManager.SegmentContainer
The container for the segment.
|
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(Cache.CacheType cacheType,
MemorySize maxMemorySize) |
CacheManager(MemorySize maxMemorySize) |
Modifier and Type | Method and Description |
---|---|
Cache |
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)
public CacheManager(Cache.CacheType cacheType, MemorySize maxMemorySize)
@VisibleForTesting public Cache 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.