cache2k

General

Category
Free
Tag
Caching
License
Apache License, Version 2.0
Min SDK
16 (Android 4.1 Jelly Bean)
Registered
Dec 11, 2016
Favorites
3
Link
https://github.com/cache2k/cache2k
See also
carbonite
Fuse
DiskLruCache
Qachee
Reservoir

Additional

Language
Java
Version
v1.2.0.Final (Aug 23, 2018)
Created
Dec 19, 2013
Updated
Nov 1, 2018
Owner
cache2k
Contributors
AymanDF
cruftex
globalworming
shpikat
filipemanuelofs
5
Activity
Badge
Generate
Download
Source code

Advertising

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
    .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

  • Spring Framework
  • Scala Cache
  • Datanucleus (via JCache)
  • Hibernate (via JCache)
  • .... and probably more, please raise an issue and get it listed!

More...

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