Skip to content
Discussion options

You must be logged in to vote

Hello,

  • Yes, if you are using ExpiryWriting or ExpiryCreating, the expiration time will not be updated when using Get. If you need to update it on every Get, you can use ExpiryAccessing or implement your own ExpiryCalculator. Essentially, you can think of Otter as a regular map on steroids. In this case, you're just getting a pointer from the map, but not updating the pointer (only the value it points to).
  • No, key-value pairs are updated immediately (unlike in Ristretto), meaning the hash table guarantees synchronization of operations with entries. Batching is only needed to save time and avoid updating eviction/expiration policies because W-TinyLFU (eviction policy) and Timer Wheel (expi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ribtoks
Comment options

Answer selected by ribtoks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants