The type of the keys in the map.
The type of the values in the map.
Gets the number of key-value pairs in the TimedMap.
The number of key-value pairs in the TimedMap.
Performs cleanup if necessary of expired entries and entries exceeding the limit.
Clears all entries from the map.
Deletes the entry with the specified key from the map.
The key of the entry to delete.
true if the entry was successfully deleted, false otherwise.
Returns an iterable iterator that contains the entries of the timed map. Each entry is a key-value pair, represented as an array [key, value]. If the entries have expired based on the time-to-live (ttl) option, they are skipped.
An iterable iterator of key-value pairs.
Returns an iterable iterator of the keys in the TimedMap.
An iterable iterator of the keys.
Sets a key-value pair in the map. If the key already exists, updates the value and updates the last access timestamp. If the key does not exist, adds a new entry with the specified key, value, and creation timestamp. Performs cleanup if necessary.
The updated TimedMap instance.
PrivateshouldChecks if the expiration time for the map entries has been reached.
True if the expiration time has been reached, false otherwise.
Returns an iterable iterator of the values in the TimedMap.
An iterable iterator of the values.
Represents a map with timed entries. Entries in the map have an optional expiration time and can be automatically cleaned up.