public class GuavaCSC extends ClientSideCache
Modifier and Type | Class and Description |
---|---|
static class |
GuavaCSC.Builder |
DEFAULT_EXPIRE_SECONDS, DEFAULT_MAXIMUM_SIZE
Constructor and Description |
---|
GuavaCSC(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 GuavaCSC.Builder |
builder() |
protected java.lang.Object |
get(long hash) |
protected long |
getCommandHash(CommandObject command) |
protected void |
invalidateAllCommandHashes() |
protected void |
invalidateCommandHashes(java.lang.Iterable<java.lang.Long> hashes) |
protected void |
put(long hash,
java.lang.Object value) |
clear
public GuavaCSC(com.google.common.cache.Cache<java.lang.Long,java.lang.Object> guavaCache, com.google.common.hash.HashFunction hashFunction)
protected final void invalidateAllCommandHashes()
invalidateAllCommandHashes
in class ClientSideCache
protected void invalidateCommandHashes(java.lang.Iterable<java.lang.Long> hashes)
invalidateCommandHashes
in class ClientSideCache
protected void put(long hash, java.lang.Object value)
put
in class ClientSideCache
protected java.lang.Object get(long hash)
get
in class ClientSideCache
protected final long getCommandHash(CommandObject command)
getCommandHash
in class ClientSideCache
public static GuavaCSC.Builder builder()
Copyright © 2024. All rights reserved.