yinqiwen / ardb

A redis protocol compatible nosql, it support multiple storage engines as backend like Google's LevelDB, Facebook's RocksDB, OpenLDAP's LMDB, PerconaFT, WiredTiger, ForestDB.
BSD 3-Clause "New" or "Revised" License
1.83k stars 278 forks source link

Automatic data eviction when DB is full #460

Open Yahook opened 5 years ago

Yahook commented 5 years ago

Can I make an automatic data eviction when I use a fixed size DB when it's full like it's done in Memcached? Memcached use LRU eviction strategy (evict keys by trying to remove the less recently used).

hotpxl commented 5 years ago

bump

inspire22 commented 2 years ago

I see that RocksDB has a NewLRUCache, but I also can't figure out what options to pass to ARDB in order to set that as the database type.