public class GuavaClientSideCache extends ClientSideCache
| Modifier and Type | Class and Description |
|---|---|
static class |
GuavaClientSideCache.Builder |
DEFAULT_EXPIRE_SECONDS, DEFAULT_MAXIMUM_SIZE| Constructor and Description |
|---|
GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache) |
GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
ClientSideCacheable cacheable) |
GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
CommandLongHasher commandHasher) |
GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> cache,
CommandLongHasher commandHasher,
ClientSideCacheable cacheable) |
GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
com.google.common.hash.HashFunction hashFunction) |
| Modifier and Type | Method and Description |
|---|---|
static GuavaClientSideCache.Builder |
builder() |
protected java.lang.Object |
getValue(long hash) |
protected void |
invalidateAllHashes() |
protected void |
invalidateHashes(java.lang.Iterable<java.lang.Long> hashes) |
protected void |
putValue(long hash,
java.lang.Object value) |
clear, get, invalidate, removeKeypublic GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache)
public GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
com.google.common.hash.HashFunction hashFunction)
public GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
CommandLongHasher commandHasher)
public GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache,
ClientSideCacheable cacheable)
public GuavaClientSideCache(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> cache,
CommandLongHasher commandHasher,
ClientSideCacheable cacheable)
protected final void invalidateAllHashes()
invalidateAllHashes in class ClientSideCacheprotected void invalidateHashes(java.lang.Iterable<java.lang.Long> hashes)
invalidateHashes in class ClientSideCacheprotected void putValue(long hash,
java.lang.Object value)
putValue in class ClientSideCacheprotected java.lang.Object getValue(long hash)
getValue in class ClientSideCachepublic static GuavaClientSideCache.Builder builder()
Copyright © 2024. All rights reserved.