trimToSize

abstract suspend fun trimToSize(size: Long)

Remove entries from the cache until the size is less than or equal to size.

If the current size is already less than or equal to size, this function does nothing. The capacity of the cache is not changed.