trimToSize

abstract fun trimToSize(size: Long)

Remove the eldest entries until the cache's size is at or below size.