Skip to main content

set_resource_cache_total_bytes_limit

Function set_resource_cache_total_bytes_limit 

pub fn set_resource_cache_total_bytes_limit(new_limit: usize) -> usize
Expand description

Set the memory usage limit for the resource cache, used for temporary bitmaps and other resources. Entries are purged from the cache when the memory usage exceeds this limit.

  • new_limit the maximum number of bytes for the resource cache