A high performance thread-safe map that expires entries
Apache License 2.0
1k
stars
142
forks
source link
trying to update the expiry map with value and expiry time for the same key. But the message expires in 60seconds(previous time) rather than 5sec(new time) #89
The value is added to the map
map.put("key1","value1",ExpirationPolicy.CREATED, 30, TimeUnits.SECONDS);
then i want to update this key with the new value and expiration time like -
map.put("key1","value2",ExpirationPolicy.CREATED, 5, TimeUnits.SECONDS);
but the values expires in 30 seconds rather it should expire in 5 seconds.