Registry / utility / ehcache

ehcache

JSON →
library2.10.8javamavenunverified

Ehcache is an open-source, standards-based cache used to boost performance, offload the database, and simplify scalability.

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

Creates a cache manager, stores and retrieves a value from a cache.

import net.sf.ehcache.CacheManager; import net.sf.ehcache.Cache; CacheManager manager = CacheManager.create(); Cache cache = manager.getCache("myCache"); cache.put(new Element("key", "value")); Element element = cache.get("key"); System.out.println(element.getObjectValue()); manager.shutdown();
Debug
Known issues
gotchaEhcache 2.x is in maintenance mode; consider upgrading to Ehcache 3.x for new projects.
fix
Use org.ehcache:ehcache version 3.x for active development and new features.
affects: <=2.10.8
Upgrade
Version history
2.10.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ehcache — mvn dependency:get ehcache · libregistry