cachedb

Crates.iocachedb
lib.rscachedb
version0.8.2
sourcesrc
created_at2021-10-18 18:10:39.05097
updated_at2022-12-22 15:15:08.22846
descriptionIn memory Key/Value store that stores RwLock which expire in LRU order when unused
homepage
repositoryhttps://github.com/cehteh/cachedb.git
max_upload_size
id466950
size80,849
(cehteh)

documentation

README

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.

Commit count: 88

cargo fmt