AEM 6: Caching REST Web Service call | Community
Skip to main content
Level 4
October 16, 2015
Solved

AEM 6: Caching REST Web Service call

  • October 16, 2015
  • 4 replies
  • 1732 views

Hi,

I am calling a REST Web Service to load the data from the back end. Is there any way I can cache the Web Service call since this is the service that loads maximum data.

thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Runal_Trivedi

You can use angularjs caching module to cache REST responses.

Kindly mind this is purely client side caching, just to give you an idea,.. REST url becomes the key whereas response the object that you cache against it.

For more details checkout below URL: https://github.com/jmdobry/angular-cache

- Runal

4 replies

Level 4
October 16, 2015
I am not sure how the RESTful Web Service has been written since there is an entirely different team for that. I have the end point URL for it that ends with .json
smacdonald2008
Level 10
October 16, 2015

How did you implemented your Restful Web Service - did you write a AEM Java servlet? 

Runal_Trivedi
Runal_TrivediAccepted solution
Level 6
October 16, 2015

You can use angularjs caching module to cache REST responses.

Kindly mind this is purely client side caching, just to give you an idea,.. REST url becomes the key whereas response the object that you cache against it.

For more details checkout below URL: https://github.com/jmdobry/angular-cache

- Runal

Lokesh_Shivalingaiah
Level 10
October 16, 2015

or you might have to use some memory cache for this