put
Inserts a new item into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Inserts a new expiring item into the cache for ttl. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Parameters
the Duration after which the entry should expire or null for permanent items
Inserts a new item into the cache until it expires. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Parameters
the Clock to use to look up the current time
Throws
if until is in the past
Inserts new items into the cache until it expires. Inserting an entry with an id that is already present will cause the old value to be overwritten.
Parameters
the Clock to use to look up the current time
Throws
if until is in the past
Inserts new expiring items into the cache for ttl. Inserting an entry with an id that is already present will cause the old value to be overwritten.