public interface Cache
Modifier and Type | Interface and Description |
---|---|
static class |
Cache.CacheType
Type for cache.
|
static class |
Cache.CacheValue
Value for 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) |
@Nullable Cache.CacheValue get(CacheKey key, java.util.function.Function<CacheKey,Cache.CacheValue> supplier)
void put(CacheKey key, Cache.CacheValue value)
void invalidate(CacheKey key)
void invalidateAll()
Map<CacheKey,Cache.CacheValue> asMap()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.