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.
Short answer: no, Cassandra does not support LRU out of the box.
, LRU Cassandra . , , , / . - , Cassandra , .. Cassandra Delete, ( ).
( Cassandra) , LRU / ( ) , LRU. , . , Cassandra - , , .
Memcache ( ) .
Cassandra LRU, TTL .
. . , .
Cassandra , , , , , , , . , .
- Redis.
Source: https://habr.com/ru/post/1530695/More articles:Добавить кнопку/ссылку сразу после заголовка на пользовательский экран редактирования типа сообщения - htmlCan I read files in GHCJS? - haskellC while цикл работает только если утверждение true? - cRails Preconfigured Virtual Machine - ruby-on-railsget all children whose grandparents identifier is 1 - c #Resize SKSpriteNode? Isometric Tasks - objective-cList insertion order based on the next list - listTouch detection in a triangular button grid? - iosConsequences for the Google Tag Manager code snippet at the bottom of HTML before closing the tag? - javascriptFloating / fixed div in footer - htmlAll Articles