Registry / utility / cache2k-api

cache2k-api

JSON →
library0.23.1javamavenunverified

A lightweight and high performance Java caching library, compatible with Android and Java 6.

<dependency> <groupId>org.cache2k</groupId> <artifactId>cache2k-api</artifactId> <version>0.23.1</version> </dependency>
INSTALL
IMPORT
SIG · CACHE2K-API
C
cache2k-api
utilityjavav0.23.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cache
org.cache2k.Cache

Creates a simple eternal cache and performs a put/get operation.

import org.cache2k.Cache; import org.cache2k.Cache2kBuilder; public class Quickstart { public static void main(String[] args) { Cache<String, String> cache = new Cache2kBuilder<String, String>() {} .eternal(true) .build(); cache.put("key", "value"); System.out.println(cache.get("key")); } }
Debug
Known issues
gotchacache2k 0.x versions are not thread-safe by default; use .entryCapacity() or configure accordingly.
fix
Explicitly set thread safety via .threadSafe(true) if needed.
affects: 0.x
Upgrade
Version history
0.23.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cache2k-api — mvn dependency:get cache2k-api · libregistry