setMessageBodyCacheSizeLimit

abstract suspend fun setMessageBodyCacheSizeLimit(bytes: Long)

Update the maximum size of the local message body cache.

If the new limit is lower than the current total cached size, the least recently used entries are immediately evicted until the total size is within the new limit. Setting bytes to 0 disables caching entirely.

Parameters

bytes

Long New cache size limit in bytes. Must be >= 0.

Throws