protected static class MemoryCacher.MemoryPartition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashMap<java.lang.String,MemoryCacher.PartitionEntry> |
cache |
protected java.util.concurrent.locks.Lock |
readerLock |
protected java.util.concurrent.locks.Lock |
writerLock |
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryPartition(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clean(java.lang.String match) |
protected void |
del(java.lang.String key) |
protected io.datatree.Tree |
get(java.lang.String key) |
protected void |
removeOldEntries(long now) |
protected void |
set(java.lang.String key,
io.datatree.Tree value,
int ttl) |
protected final java.util.concurrent.locks.Lock readerLock
protected final java.util.concurrent.locks.Lock writerLock
protected final java.util.LinkedHashMap<java.lang.String,MemoryCacher.PartitionEntry> cache
protected void removeOldEntries(long now)
protected io.datatree.Tree get(java.lang.String key)
throws java.lang.Exception
java.lang.Exceptionprotected void set(java.lang.String key,
io.datatree.Tree value,
int ttl)
protected void del(java.lang.String key)
protected void clean(java.lang.String match)