Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Caching with EhCache in AEM

Avatar

Level 1

Hi, I'm trying to use EhCache for In memory caching in AEM, but I have problems with setup, i cant seem to find how to add it to AEM.

Does anyone have any experience with using EhCache and can help with the setup.

I've seen this: http://blog.atish.me/2016/12/25/AEM-Ehcache/ but its not working for me.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @edisincek ,

 

EH cache is purely server side caching and you can simply use the java EH cache implementation to get it working in AEM by creating a service for it :

References you can use :

  1. https://www.baeldung.com/ehcache
  2. https://github.com/ehcache
  3. https://mkyong.com/ehcache/ehcache-hello-world-example/

Hope this helps, thanks.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi @edisincek ,

 

EH cache is purely server side caching and you can simply use the java EH cache implementation to get it working in AEM by creating a service for it :

References you can use :

  1. https://www.baeldung.com/ehcache
  2. https://github.com/ehcache
  3. https://mkyong.com/ehcache/ehcache-hello-world-example/

Hope this helps, thanks.

Avatar

Community Advisor

Hi,

You can probably explore ACS commons HTTP memory cache

https://adobe-consulting-services.github.io/acs-aem-commons/features/http-cache/index.html 

 

This will provide you all the interface to check, rebuild and clear the cache.