Hibernate 5.2 is compatible with which ehcache

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?

That’s the version used by Hibernate in libraries.gradle.

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

For more details, check out the User guide.