Registry / caching / j2cache-core

j2cache-core

JSON →
library2.1.0javamavenunverified

Core module of J2Cache, a two-level caching framework for Java applications.

<dependency> <groupId>net.oschina.j2cache</groupId> <artifactId>j2cache-core</artifactId> <version>2.1.0</version> </dependency>
INSTALL
IMPORT
SIG · J2CACHE-CORE
J
j2cache-core
cachingjavav2.1.0
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.

CacheChannel
net.oschina.j2cache.CacheChannel

Initialize J2Cache and perform basic caching operations.

import net.oschina.j2cache.CacheChannel; import net.oschina.j2cache.J2Cache; public class Example { public static void main(String[] args) { CacheChannel cache = J2Cache.getChannel(); cache.set("region", "key", "value"); String value = cache.get("region", "key", String.class); System.out.println(value); } }
Debug
Known issues
breakingJ2Cache requires a configuration file (j2cache.properties) in the classpath; missing it causes runtime errors.
fix
Ensure j2cache.properties is present with proper Redis/L1 cache settings.
affects: >=2.0.0
Upgrade
Version history
2.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
38
OpenAI (training)
1
Resources
j2cache-core — mvn dependency:get j2cache-core · libregistry