Skip to content
SPECIFICTION
Get listed

cache2k vs Google Guava Cache

cache2k

cache2k.org

Google Guava Cache

github.com

Side by side

Figurecache2kGoogle Guava Cache
Price fromFree—
Free planYes—
Free trial——
Open source——
Windows—Yes
LinuxYesYes
AndroidYesYes
APIYes—
Self-hostedYes—
Plans published10
Spec score · Caching Software8.1 (#6)5.8 (#23)

Plans

cache2k

  • cache2kFree

cache2k pricing →

Google Guava Cache

No plans published.

Google Guava Cache pricing →

In their own words

cache2k

cache2k is an Apache-licensed, open-source library that keeps Java application objects in memory. Its project describes a JAR smaller than 400 KB with no external dependencies, and the implementation is written in pure Java without sun.misc.Unsafe. Cache behavior includes automatic expiry, refresh, refresh ahead, read-through loading, and event listeners. Cache loaders can suppress exceptions or retry them according to configuration. Integrations listed include Spring Framework, Scala Cache, DataNucleus through JCache, and Hibernate through JCache. cache2k supports JCache / JSR 107, while its guide notes extra overhead for that API compared with the native interface. Monitoring options include low-overhead statistics, JMX, and documented Micrometer metrics. Version 2 requires Java 8 or later and is described as compatible with Android API level 26. The library is free, available from Maven Central, self-hosted, and does not persist data.

Visit cache2k.org

Google Guava Cache

Google Guava Cache has no write-up on Specifiction yet; its figures are above.

Visit github.com