How to enable caching with Spring Data Rest?
The reasoning behind is that repository listing and search methods won\'t change once the application is up. Also if the
The easiest way to implement this on the repository level is to use Spring's @Cacheable as it can be seen in the Spring Data JPA Examples project.
@Cacheable
Another option is to leverage HTTP Caching using the Apache HTTPD settings or a Varnish for example.