lv_cache_drop_all() function
Drop all cache entries. All entries will be removed from the cache and their data will be freed when the last reference to them is released.
Arguments
cache
The cache object pointer to drop all entries.
user_data
A user data pointer that will be passed to the free callback.
Notes
If some entries are still referenced by other objects, it will issue an error. And this case shouldn't happen in normal cases..