put

suspend fun <T : Any> DataCache.put(type: KType, item: T): Unit?
inline suspend fun <T : Any> DataCache.put(item: T): Unit?

Inserts a new item into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.