Skip to content
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

FR: Add a LRU Cache debatable and predictable. wit #231

Open
jesus-mg-ios opened this issue Jun 22, 2024 · 0 comments
Open

FR: Add a LRU Cache debatable and predictable. wit #231

jesus-mg-ios opened this issue Jun 22, 2024 · 0 comments

Comments

@jesus-mg-ios
Copy link

Hi Community,

I’ve been exploring the inner workings of NSCache and found it to be somewhat unpredictable and challenging to debug, lacking robust methods for effective cache management.

This led me to wonder: would it be feasible to introduce a thread-safe, manageable, and predictable LRUCache that can listen for system low memory warnings and respond according to customizable configurations? The key requirement is that this cache should remain in memory and not be evicted when the system goes into the background or the device is locked.

Creating a custom cache or relying on third-party solutions is quite cumbersome. In my opinion, Apple should address this gap. It’s increasingly uncommon for apps not to require such in-memory caching capabilities.

It would be great to develop a solution here, and perhaps Apple could eventually integrate it into the Foundation framework.

Best.

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

No branches or pull requests

1 participant