CacheEntry

data class CacheEntry<K, V>(val key: K, val value: V, val creationDate: Long, val lastAccessDate: Long)

Wrapper class for a cached entry that holds the key/value pair as well as metadata.

Constructors

Link copied to clipboard
constructor(key: K, value: V, creationDate: Long, lastAccessDate: Long)

Properties

Link copied to clipboard

when this entry was created in milliseconds since epoch

Link copied to clipboard
val key: K

the key for this entry

Link copied to clipboard

when this entry was last accessed in milliseconds since epoch

Link copied to clipboard
val value: V

the value for this entry