Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cache2k/cache2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2,519 Commits

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.

About

Lightweight, high performance Java caching

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 8

Languages

AltStyle によって変換されたページ (->オリジナル) /