tryGet

fun tryGet(key: K): V?

Returns an object of type V given its key of type K, if it is present in the cache, or null if no entry was found.

Note: if the function returns a non-null reference, its internal reference counter will not be incremented (use ref if you need to increment the counter).