JBoss Community Archive (Read Only)

Infinispan 6.0

Is there any way I can boost cache store's performance? SKIP_CACHE_LOAD

If, for put operations, you don't need the previous values existing in the cache/store then the following optimisation can be made:

Skip cache store read
cache.getAdvancedCache().withFlags(Flag.SKIP_CACHE_LOAD).put(key, value);

Note that in this case the value returned by cache.put is not reliable.
This optimisation skips a cache store read and can have very significant performance improvement effects.

More flags are described at Per-Invocation Flags

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 09:41:23 UTC, last content change 2012-10-18 12:04:56 UTC.