Cache.CacheType, Cache.CacheValue
Constructor and Description |
---|
GuavaCache(org.apache.paimon.shade.guava30.com.google.common.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 GuavaCache(org.apache.paimon.shade.guava30.com.google.common.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.