11.3. Overriding options

11.3. Overriding options

As of JBoss Cache 1.3.0, a new API has been introduced, to allow you to override certain behaviour of the cache on a per invocation basis. This involves creating an instance of org.jboss.cache.config.Option, setting the options you wish to override on the Option object and passing it in as a parameter to overloaded versions of get(), put() and remove(). See the javadocs on the Option class for details on these options.