getOrPut

open override fun getOrPut(key: String, value: Any, cacheId: CacheIds): Any(source)

Gets an item from the cache but adds it if it doesn't exist

Return

The value of the item

Parameters

key

The key of the item

value

The value of the item

cacheId

The id of the cache