pensymphony.com/oscache/wiki/Configuration.html">OSCache documentation. In addition to the standard OSCache parameters, Cayenne provider allows to setup global cache expiration parameters, and parameters matching the main query cache group (i.e. the cache groups specified first). A sample oscache.properties may look like this:
# OSCache configuration file # OSCache standard configuration per # http://www.opensymphony.com/oscache/wiki/Configuration.html # --------------------------------------------------------------- #cache.memory=true #cache.blocking=false cache.capacity=5000 cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache # Cayenne specific properties # --------------------------------------------------------------- # Default refresh period in seconds: cayenne.default.refresh = 60 # Default expiry specified as cron expressions per # http://www.opensymphony.com/oscache/wiki/Cron%20Expressions.html # expire entries every hour on the 10's minute cayenne.default.cron = 10 * * * # Same parameters can be overriden per query cayenne.group.xyz.refresh = 120 cayenne.group.xyz.cron = 10 1 * *
Further extension of OSQueryCache is possible by using OSCache listener API.
@since 3.0