Cache.CacheType, Cache.CacheValue
Constructor and Description |
---|
CaffeineCache(org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,Cache.CacheValue> cache) |
Modifier and Type | Method and Description |
---|---|
Map<CacheKey,Cache.CacheValue> |
asMap() |
Cache.CacheValue |
get(CacheKey key,
java.util.function.Function<CacheKey,Cache.CacheValue> supplier) |
void |
invalidate(CacheKey key) |
void |
invalidateAll() |
void |
put(CacheKey key,
Cache.CacheValue value) |
public CaffeineCache(org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<CacheKey,Cache.CacheValue> cache)
@Nullable public Cache.CacheValue get(CacheKey key, java.util.function.Function<CacheKey,Cache.CacheValue> supplier)
public void put(CacheKey key, Cache.CacheValue value)
public void invalidate(CacheKey key)
invalidate
in interface Cache
public void invalidateAll()
invalidateAll
in interface Cache
public Map<CacheKey,Cache.CacheValue> asMap()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.