Use eclipselink.query-results-cache.expiry-time-of-day
to set the time of day of the query's results cache expiration.
Values
Table 4-29 describes this persistence property's values.
Table 4-29 Valid Values for query-results-cache.expiry-time-of-day
Value | Description |
---|---|
Value |
Time, in HH:MM:SS format, as a |
Usage
By default the query results cache will not expiry results.
Examples
Example 4-59 Using query-results-cache.expiry-time-of-day in a JPA Query
import org.eclipse.persistence.config.HintValues; import org.eclipse.persistence.config.QueryHints; query.setHint("eclipselink.QUERY_RESULTS_CACHE_EXPIRY_TIME_OF_DAY", "11:15:34");
Example 4-60 Using query-results-cache.expiry-time-of-day in a @QueryHint Annotation
import org.eclipse.persistence.config.HintValues; import org.eclipse.persistence.config.QueryHints; @QueryHint(name=QueryHints.QUERY_RESULTS_CACHE_EXPIRY_TIME_OF_DAY, value="11:15:34");
See Also
For more information, see: