remove

abstract fun remove(cacheKey: CacheKey, cascade: Boolean = true): Boolean

Remove cache record by the key This is a synchronous operation that might block if the underlying cache is doing IO

Return

true if the record was successfully removed, false otherwise

Parameters

cacheKey

of record to be removed

cascade

defines if remove operation is propagated to the referenced entities


abstract fun remove(cacheKeys: List<CacheKey>, cascade: Boolean = true): Int

Remove a list of cache records This is an optimized version of remove for caches that can batch operations This is a synchronous operation that might block if the underlying cache is doing IO

Return

the number of records that have been removed

Parameters

cacheKeys

keys of records to be removed