Registry / utility / ehcache-core

ehcache-core

JSON →
library2.6.11javamavenunverified

Ehcache Core is a widely used Java caching library that provides in-process caching with support for various caching strategies and persistence.

<dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.6.11</version> </dependency>
INSTALL
IMPORT
SIG · EHCACHE-CORE
E
ehcache-core
utilityjavav2.6.11
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.

CacheManager
✓ net.sf.ehcache.CacheManager

Minimal Ehcache example creating a cache, storing and retrieving an element.

import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.Element; public class EhcacheExample { public static void main(String[] args) { CacheManager manager = CacheManager.newInstance(); Cache cache = new Cache("testCache", 100, false, false, 3600, 1800); manager.addCache(cache); cache.put(new Element("key", "value")); Element element = cache.get("key"); System.out.println("Value: " + element.getObjectValue()); manager.shutdown(); } }
Debug
Known issues
breakingEhcache 2.x is legacy; consider migrating to Ehcache 3.x for better performance and features.
fix
Use org.ehcache:ehcache for the modern version.
affects: 2.6.11
Upgrade
Version history
2.6.11latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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