Module org.cruk.clarity.api.cache
Package org.cruk.clarity.api.cache
package org.cruk.clarity.api.cache
Package supporting caching of Clarity entities in memory
(or, if so configured, on disk) to reduce the amount of traffic being
sent to and from the REST API.
At present, the "stateful" objects (specifically, the Artifact
class)
produces some problems. See the documentation for ClarityAPICache
for further information.
The cache is implemented using EhCache. The default version of this file is packaged with the JAR, so if you need to change it create a replacement that is before this project's JAR file on the class path.
Caches are configured in the ClarityClientCacheConfiguration
Spring configuration class. If these need to be changed, create a subclass for your own configuration
and override the
clarityCacheManager()
method, creating your caches as necessary.
- See Also:
-
ClassDescriptionOptions for how the API cache handles entities that are stateful.A cache optionally deployed around a
ClarityAPI
bean as an aspect.