lv_cache_add() function
Add a new cache entry with the given key and data. If the cache is full, the cache's policy will be used to evict an entry.
Arguments
cache
The cache object pointer to add the entry.
key
The key of the entry to add.
user_data
A user data pointer that will be passed to the create callback.
Return value
Returns a pointer to the added cache entry on success with `lv_cache_entry_t::ref_cnt` incremented, `NULL` on error.