# Hibernate 5.2 is compatible with which ehcache

**URL:** <https://discourse.hibernate.org/t/hibernate-5-2-is-compatible-with-which-ehcache/1214>\
**Category:** Hibernate ORM\
**Created:** [August 12, 2018, 8:55am UTC](https://discourse.hibernate.org/t/hibernate-5-2-is-compatible-with-which-ehcache/1214 "2018-08-12T08:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushkar\_Deole](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@Pushkar\_Deole](https://discourse.hibernate.org/u/Pushkar_Deole)\
**Post date:** [August 12, 2018, 8:55am UTC](https://discourse.hibernate.org/t/hibernate-5-2-is-compatible-with-which-ehcache/1214/1 "2018-08-12T08:55:33Z")

</div>

I have downloaded hibernate-release-5.2.17.Final and unzipped it. It contains lib/optional/ehcache folder inside which there is ehcache-2.10.3.jar.  
Does that mean that hibernate 5.2.17 works with ehcache 2.10.3?  
What is the meaning of having this version of ehcache with hibernate 5.2.17 distribution?

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [August 12, 2018, 11:43am UTC](https://discourse.hibernate.org/t/hibernate-5-2-is-compatible-with-which-ehcache/1214/2 "2018-08-12T11:43:44Z")

</div>

That’s the version used by Hibernate in [libraries.gradle](https://github.com/hibernate/hibernate-orm/blob/master/gradle/libraries.gradle#L130).

For Ehcache 2, use hibernate-ehcache module. For Ehcache 3, use hibernate-jcache.

For more details, check out the User guide.
