Internal cache utilities
getCachedValuesForType |
Returns all cached value for specified type. fun <T> getCachedValuesForType(: String): Map<Id<T>, Any> |
getFromCache |
Returns the value for specified id and type. If no value exists, null is returned. fun <T : Any> getFromCache(: Id<T>, : String): T? |
getOrCache |
Returns the value for specified id and type. If no value exists, valueProvider provides the value to cache. If valueProvider throws exception or returns null, no value is cached and null is returned. fun <T : Any> getOrCache(: Id<T>, : String, : () -> T?): T? |
putInCache |
Adds in cache the specified value. fun <T : Any> putInCache(: Id<T>, : String, : T): Unit |
removeFromCache |
Remove the value for specified id and type from cache. fun <T : Any> removeFromCache(: Id<T>, : String): Unit |