I m 寻找一个储存的现成价值的系统,并自动消除的现时值。
Something like a RoundRobin system but, as long I understand, RoundRobin is based in an specific amount of records and removing as much old ones as much new ones are coming.
在这一制度中,可是任何数额记录,而只是删除那些高于特定时间滞后的记录。
一种近似可是一种系统,每个记录都有预留时间:
console.append "key", { :value => "value1", :timeout => 10.minutes_in_the_future }
console.append "key", { :value => "value2", :timeout => 10.minutes_in_the_future }
console.append "key", { :value => "value3", :timeout => 10.minutes_in_the_future }
And somehow the system is in charge to remove any expired record.
该系统可以建立在任何高性能储存系统(Redis, Memcache, ......)之上。
我不想仅仅想详细解释如何实施某种启发或任何相关的条款或现有制度,这样我就不希望