It should be possible to annotate on either class or method level for how long an entire response can be cached.
The standard, or if otherwise specified, cachemanager is used.
If only partials of the response need caching, then a typical approach still needs to be employed.
Example:
@Cache("2h")
public void getJson()
@Cache //standard caching time
public void getXml()
It should be possible to annotate on either class or method level for how long an entire response can be cached.
The standard, or if otherwise specified, cachemanager is used.
If only partials of the response need caching, then a typical approach still needs to be employed.
Example: