getIfAvailableOrDefault

open override fun getIfAvailableOrDefault(key: K, defaultValue: V): V

Returns the value for key if it exists in the cache or defaultValue if it doesn't exist or its creation is still in progress.

Note that this function returns defaultValue if the entry is expired, but it doesn't remove it either.