# Java Caching (JSR 107)

**URL:** <https://dev.lucee.org/t/java-caching-jsr-107/2334>\
**Category:** ideas\
**Created:** [May 12, 2017, 8:56am UTC](https://dev.lucee.org/t/java-caching-jsr-107/2334 "2017-05-12T08:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micstriit](https://dev.lucee.org/user_avatar/dev.lucee.org/micstriit/32/26_2.png) [@micstriit](https://dev.lucee.org/u/micstriit)\
**Post date:** [May 12, 2017, 8:56am UTC](https://dev.lucee.org/t/java-caching-jsr-107/2334/1 "2017-05-12T08:56:29Z")

</div>

While looking into the effort necessary update our EHCache Extension to 3.3 (atm 2.4), i learned that EHCache support the Java Caching interface, so maybe it makes sense to make an abstract implementation for Java Caching and then the EHCache implementation only has to extend this implementation with everything specific to EHCache, for example the configuration.

Java Caching is supported atm by the following caches:  
[https://jcp.org/aboutJava/communityprocess/implementations/jsr107/index.html](https://jcp.org/aboutJava/communityprocess/implementations/jsr107/index.html)

So adding new caches will be a lot easier in the future if they support Java Caching.

---

<div class="post-metadata">

**Author:** ![micstriit](https://dev.lucee.org/user_avatar/dev.lucee.org/micstriit/32/26_2.png) [@micstriit](https://dev.lucee.org/u/micstriit)\
**Post date:** [May 12, 2017, 10:08am UTC](https://dev.lucee.org/t/java-caching-jsr-107/2334/2 "2017-05-12T10:08:38Z")

</div>

i see one serious limitation with JCache:

> <https://stackoverflow.com/questions/37408179/does-jcache-jsr107-allow-different-expiry-durations-for-different-entries>

---

<div class="post-metadata">

**Author:** ![isapir](https://dev.lucee.org/user_avatar/dev.lucee.org/isapir/32/854_2.png) [@isapir](https://dev.lucee.org/u/isapir)\
**Post date:** [May 17, 2017, 8:39pm UTC](https://dev.lucee.org/t/java-caching-jsr-107/2334/3 "2017-05-17T20:39:57Z")

</div>

BIG +1 from me.

I’m always in favor of writing interfaces, especially when it comes to standards.
