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

Replace Guava cache with Caffeine cache #589

Open
5 tasks
pditommaso opened this issue Aug 3, 2024 · 0 comments
Open
5 tasks

Replace Guava cache with Caffeine cache #589

pditommaso opened this issue Aug 3, 2024 · 0 comments

Comments

@pditommaso
Copy link
Collaborator

The use Guava cache is currently discouraged in favour of Caffeine cache.

Prefer Caffeine over Guava's caching API
The successor to Guava's caching API is Caffeine. Its API is designed to make it a nearly drop-in replacement. It requires Java 8+, and is not available for Android or GWT/J2CL, and may have different (usually better) behavior when multiple threads attempt concurrent mutations. Its equivalent to CacheBuilder is its Caffeine class. Caffeine offers better performance, more features (including asynchronous loading), and fewer bugs.

See more Guava docs](https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/cache/CacheBuilder.html

The goal of this issue is to replace the use of Guava caches and replace with the corresponding Caffeine implementation.

A separate PR should be implemented for each of the following classes:

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