put

abstract fun put(key: Key, value: Value)

Associates value with key. If the cache previously contained a value associated with key, the old value is replaced by value. Prefer getOrPut when using the conventional "If cached, then return. Otherwise create, cache, and then return" pattern.