agatedb icon indicating copy to clipboard operation
agatedb copied to clipboard

[DNM] cache: add block cache for table

Open wangnengjie opened this issue 3 years ago • 0 comments

DO NOT MERGE! This is just an example impl for block cache. The design of LRU is copied from leveldb. (I'm a Rust beginner. So the code is quite ugly.) ~~Currently, as agatedb opens every table in mmap mode, the block cache is nearly useless.~~(sorry I misunderstand mmap) I'll add some test for block cache later. relate issues: https://github.com/tikv/agatedb/issues/153 https://github.com/tikv/agatedb/issues/164

wangnengjie avatar Jul 25 '22 09:07 wangnengjie