You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slightly different to refresh in that we need to calculate any potential TTL deltas to make sure that it still expires at the same time.
For example:
# assume now is 1000ms
set({ "key", 1000, 500, "value" }) # would expire in 500ms
:timer.sleep(100)
touch("key") # this should become { "key", 1100, 400, "value" } so it still expires in 400ms
The text was updated successfully, but these errors were encountered:
whitfin
changed the title
Add the ability to touch a key to update the write time, but maintain the same TTL
Add the ability to touch a key's write time
Sep 14, 2016
This is a prerequisite to having good LRU.
Slightly different to
refresh
in that we need to calculate any potential TTL deltas to make sure that it still expires at the same time.For example:
The text was updated successfully, but these errors were encountered: