在hazelcast中设置TTL/记录到期 [英] Setting TTL/Record Expiry in hazelcast
本文介绍了在hazelcast中设置TTL/记录到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在hazelcast DB中,是否有任何方法可以为每个记录设置TTL?最好是在Map或Ringbuffer中.
Is there any way to set TTL per record in hazelcast DB?Preferably in Map or Ringbuffer.
推荐答案
我想您正在寻找的是
IMap::put(Key, Value, TTL, TimeUnit)
IMap:
http://docs. hazelcast.org/docs/3.6/manual/html-single/index.html#evicting-specific-entries