Class MemoryCacher.MemoryPartition
java.lang.Object
services.moleculer.cacher.MemoryCacher.MemoryPartition
- Enclosing class:
MemoryCacher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LinkedHashMap<String, MemoryCacher.PartitionEntry> protected final MemoryCacherprotected final ReentrantReadWriteLock.ReadLockprotected final ReentrantReadWriteLock.WriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected longprotected voidcollectExpiredEntries(long now, LinkedList<String> expiredKeys) protected booleanprotected io.datatree.Treeprotected intremoveOldEntries(long now) protected void
-
Field Details
-
parent
-
readLock
-
writeLock
-
cache
-
-
Constructor Details
-
MemoryPartition
-
-
Method Details
-
removeOldEntries
protected int removeOldEntries(long now) -
collectExpiredEntries
-
get
-
set
-
del
-
clean
-
addKeysTo
-