{"id":54676,"library":"ehcache-core","title":"Ehcache Core","description":"Ehcache Core is a widely used Java caching library that provides in-process caching with support for various caching strategies and persistence.","status":"active","version":"2.6.11","language":"java","source_language":null,"source_url":"http://svn.terracotta.org/svn/ehcache/trunk","tags":["caching","java","performance"],"install":[{"cmd":"<dependency>\n  <groupId>net.sf.ehcache</groupId>\n  <artifactId>ehcache-core</artifactId>\n  <version>2.6.11</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'net.sf.ehcache:ehcache-core:2.6.11'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"CacheManager","correct":"net.sf.ehcache.CacheManager"}],"quickstart":{"code":"import net.sf.ehcache.Cache;\nimport net.sf.ehcache.CacheManager;\nimport net.sf.ehcache.Element;\n\npublic class EhcacheExample {\n    public static void main(String[] args) {\n        CacheManager manager = CacheManager.newInstance();\n        Cache cache = new Cache(\"testCache\", 100, false, false, 3600, 1800);\n        manager.addCache(cache);\n        cache.put(new Element(\"key\", \"value\"));\n        Element element = cache.get(\"key\");\n        System.out.println(\"Value: \" + element.getObjectValue());\n        manager.shutdown();\n    }\n}","lang":"java","description":"Minimal Ehcache example creating a cache, storing and retrieving an element."},"warnings":[{"fix":"Use org.ehcache:ehcache for the modern version.","message":"Ehcache 2.x is legacy; consider migrating to Ehcache 3.x for better performance and features.","severity":"breaking","affected_versions":"2.6.11"}],"env_vars":null,"search_vec":"'cach':10,17,22,26 'core':2,4 'ehcach':1,3 'in-process':14 'java':9,27 'librari':11 'perform':28 'persist':25 'process':16 'provid':13 'strategi':23 'support':19 'use':8 'various':21 'wide':7","created_at":"2026-06-15T09:18:41.409111+00:00","updated_at":"2026-06-15T09:18:41.409111+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://ehcache.org","github":null,"docs":"https://appdoc.app/artifact/net.sf.ehcache/ehcache-core/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}