public class CaffeineCSC extends ClientSideCache
Modifier and Type | Class and Description |
---|---|
static class |
CaffeineCSC.Builder |
DEFAULT_EXPIRE_SECONDS, DEFAULT_MAXIMUM_SIZE
Constructor and Description |
---|
CaffeineCSC(com.github.benmanes.caffeine.cache.Cache<java.lang.Long,java.lang.Object> caffeineCache,
net.openhft.hashing.LongHashFunction hashFunction) |
Modifier and Type | Method and Description |
---|---|
static CaffeineCSC.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 CaffeineCSC(com.github.benmanes.caffeine.cache.Cache<java.lang.Long,java.lang.Object> caffeineCache, net.openhft.hashing.LongHashFunction 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 CaffeineCSC.Builder builder()
Copyright © 2024. All rights reserved.