lv_cache_reserve() function
Reserve a certain amount of memory/count in the cache. This function is useful when you want to reserve a certain amount of memory/count in advance, for example, when you know that you will need it later. When the current cache size is max than the reserved size, the function will evict entries until the reserved size is reached.
Arguments
cache
The cache object pointer to reserve.
reserved_size
The amount of memory/count to reserve.
user_data
A user data pointer that will be passed to the free callback.