Package com.day.cq.reporting
Interface DataCache
public interface DataCache
Provides caching for Data over several requests.
The cache doesn't need to provide synchronization; synchronization must be provided from the clients of the cache.
The exact caching algorithm is left to the implementation. Memory consumption should be a considered important, as reports may grow quite large.
-
Method Summary
-
Method Details
-
put
Adds the specified report data to the cache.- Parameters:
userId- The ID of the user to cache the report forpath- The path of the reportlocale- The locale the report was created fordata- The report data to addmodificationDate- The date of the report's last modification
-
get
Gets a report by its path.- Parameters:
userId- The ID of the user to determine the report forpath- The pathlocale- The locale the data has to be determined formodificationDate- The date of the report's last modification- Returns:
- The cached report;
nullif the report is not cached
-