Popularity
5.0
Stable
Activity
1.4
-
744
21
77

Programming language: Java
License: Apache License 2.0
Tags: Caching     Projects    
Latest version: v2.6.1.Final

cache2k alternatives and similar libraries

Based on the "Caching" category.
Alternatively, view cache2k alternatives based on common mentions on social networks and blogs.

  • JCacheX

    Production-ready caching library featuring async support, distributed clustering, Spring Boot integration, and intelligent eviction strategies.

Do you think we are missing an alternative of cache2k or a related project?

Add another 'Caching' Library

README

License Stack Overflow Maven Central CircleCI

cache2k Java Caching

cache2k is an in-memory high performance Java Caching library.

  Cache<String,String> cache = new Cache2kBuilder<String, String>() {}
    .expireAfterWrite(5, TimeUnit.MINUTES)    // expire/refresh after 5 minutes
    .setupWith(UniversalResiliencePolicy::enable, b -> b // enable resilience policy
      .resilienceDuration(30, TimeUnit.SECONDS)          // cope with at most 30 seconds
                                                         // outage before propagating 
                                                         // exceptions
    )
    .refreshAhead(true)                       // keep fresh when expiring
    .loader(this::expensiveOperation)         // auto populating function
    .build();

For a detailed introduction continue with Getting Started.

Features at a glance

Integrations

More...

For more documentation and latest news, see the cache2k homepage.

Contributing

See the [Contributor Guide](CONTRIBUTING.md).


*Note that all licence references and agreements mentioned in the cache2k README section above are relevant to that project's source code only.