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.