public interface Cache<K,V>
void
clean()
V
get(K key)
get(K key, Supplier<K,V> loader)
getIfPresent(K key)
refresh(K key)
remove(K key)
set(K key, V value)
set(K key, V value, long expire)
set(K key, V value, long expire, TimeUnit timeUnit)
int
size()
Map<K,V>
toMap()
void set(@NonNull K key, @Nullable V value)
void set(@NonNull K key, @Nullable V value, long expire)
void set(@NonNull K key, @Nullable V value, long expire, TimeUnit timeUnit)
V get(@NonNull K key)
V getIfPresent(@NonNull K key)
V get(@NonNull K key, @Nullable Supplier<K,V> loader)
V remove(@NonNull K key)
void refresh(@NonNull K key)
void clean()
int size()
Map<K,V> toMap()
Copyright © 2019. All rights reserved.