-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utility to adapt a Guava CacheLoader to Caffeine's (fixes #766)
The Guava adapters wrap the Caffeine implementations to masquerade under their APIs. Sometimes users wish to use Caffeine's APIs without migrating their Guava CacheLoader. The adapter is now available for use with our cache builder. ```java CacheLoader<K, V> caffeineLoader = CaffeinatedGuava.caffeinate(guavaLoader); LoadingCache<K, V> caffeineCache = Caffeine.newBuilder().build(caffeineLoader); ```
- Loading branch information
Showing
4 changed files
with
145 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters