trimToSize

open suspend override fun trimToSize(size: Long)

Remove entries according to the policy defined by strategy until the total of remaining entries is/at/or below size. It won't affect the max size of the cache, allowing it to grow again.