GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cache2k/cache2k: Lightweight, high performance Java caching

BranchesTags
Open more actions menu

Latest commit

 

History

2,519 Commits
2,519 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
build-config
build-config
 
 
cache2k-addon
cache2k-addon
 
 
cache2k-api
cache2k-api
 
 
cache2k-config
cache2k-config
 
 
cache2k-core
cache2k-core
 
 
cache2k-java11-parent
cache2k-java11-parent
 
 
cache2k-jcache-tests
cache2k-jcache-tests
 
 
cache2k-jcache
cache2k-jcache
 
 
cache2k-jmx
cache2k-jmx
 
 
cache2k-micrometer
cache2k-micrometer
 
 
cache2k-pinpoint
cache2k-pinpoint
 
 
cache2k-schema
cache2k-schema
 
 
cache2k-spring
cache2k-spring
 
 
cache2k-testing
cache2k-testing
 
 
cache2k-testsuite
cache2k-testsuite
 
 
documentation
documentation
 
 
src
src
 
 
test-android-gradle
test-android-gradle
 
 
test-init-java11
test-init-java11
 
 
test-init
test-init
 
 
test-kotlin
test-kotlin
 
 
test-parent
test-parent
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
pom.xml
pom.xml
 
 
site.sh
site.sh
 
 

Repository files navigation

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

  • Small jar file (less than 400k) with no external dependencies
  • Fastest access times, due to non blocking and wait free access of cached values, Blog article
  • Pure Java code, no use of sun.misc.Unsafe
  • Thread safe, with a complete set of atomic operations
  • Resilience and smart exception handling
  • Null value support, see User Guide - Null Values
  • Automatic Expiry and Refresh: duration or point in time, variable expiry per entry, delta calculations
  • CacheLoader with blocking read through, see User Guide - Loading and Read Through
  • CacheWriter
  • Event listeners
  • Refresh ahead reduces latency
  • Low Overhead Statistics and JMX support
  • Separate API with stable and concise interface
  • complete JCache / JSR107 support
  • XML based configuration, to separate cache tuning from logic

Integrations

  • Spring Framework
  • Scala Cache
  • Datanucleus (via JCache)
  • Hibernate (via JCache)

More...

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

Contributing

See the Contributor Guide.

About

Lightweight, high performance Java caching

cache2k.org

Topics

androidandroid-librarycachejavajava-library

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

745 stars

Watchers

21 watching

Forks

79 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.