wave icon indicating copy to clipboard operation
wave copied to clipboard

Replace Guava cache with Caffeine cache

Open pditommaso opened this issue 6 months ago • 0 comments

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:

pditommaso avatar Aug 03 '24 11:08 pditommaso