Skip to content

feat(cache): refactor cache framework and add new APIs #5501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

W-Mai
Copy link
Contributor

@W-Mai W-Mai commented Jan 26, 2024

Description of the feature or fix

Refactor cache framework and add new APIs:

void lv_cache_reserve(lv_cache_t * cache, uint32_t reserved_size, void * user_data);
bool lv_cache_evict_one(lv_cache_t * cache, void * user_data);
  • reserve is aim to ensure cache will reserve size space.
  • evict is aim to evict one cache manually by with cache's aging algorithm.

CACHE's DOCS AND COMMENTS ARE IN PROGRESS

Notes

@FASTSHIFT FASTSHIFT merged commit f426717 into lvgl:master Jan 29, 2024
HongChao6 pushed a commit to HongChao6/lvgl that referenced this pull request Oct 18, 2024
HongChao6 pushed a commit to HongChao6/lvgl that referenced this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants