cachedb
rad:z2da46tnXoun8y9PNSwQaXLgXfAf6
Visibility
public
Delegates
did:key:z6MksaJkZuQj49mbrft8JNvo3vBDU5AC5owW1EnCZJJ3goRX
Default branch
master → c9b36ee2b87fdaee4932baeda01b3a5c3d058d2c (Thu Dec 22 15:14:33 2022)
Threshold
1
README.md
In memory Key/Value store with LRU expire and concurrent access


# Description

Items are stored in N sharded/bucketized HashMaps to improve concurrency.  Every Item is
always behind a RwLock.  Quering an item will return a guard associated to this lock.
Items that are not locked are kept in a list to implement a least-recent-used expire
policy.  Locked items are removed from that lru list and put into the lru-list when they
become unlocked.  Locked Items will not block the hosting HashMap.