Can Cassandra be used as LRU cache

I would like to save a key-value pair in Cassandra and have a record Automatically deleted in LRU when a fixed storage size is reached.

Is it possible to do this with Cassandra, if so, what would be the best way to do this. If not, then there is some other distributed storage system that would support this use case, without having to store all the data in memory.

+4
source share
2 answers

Short answer: no, Cassandra does not support LRU out of the box.

, LRU Cassandra . , , , / . - , Cassandra , .. Cassandra Delete, ( ).

( Cassandra) , LRU / ( ) , LRU. , . , Cassandra - , , .

Memcache ( ) .

+2

Cassandra LRU, TTL .

. . , .

Cassandra , , , , , , , . , .

- Redis.

0

Source: https://habr.com/ru/post/1530695/


All Articles