jboss - Set infinispan entity cache eviction and expiration policies via cli console -
i need add cli command change infinispan entity settings
<invalidation-cache name="entity" mode="sync"> <transaction mode="non_xa"/> <eviction strategy="lru" max-entries="10000"/> <expiration max-idle="100000"/> </invalidation-cache>
to
<invalidation-cache name="entity" mode="async"> <transaction mode="non_xa"/> <eviction strategy="lru" max-entries="10000"/> <expiration lifespan="100000"/> </invalidation-cache>
for have 2 commands removing existing setting , creates new 1 without specify eviction , expiration policies.
/profile=full-ha/subsystem=infinispan/cache-container=hibernate/invalidation-cache=entity:remove /profile=full-ha/subsystem=infinispan/cache-container=hibernate/invalidation-cache=entity:add(mode=async)
how can specify eviction , expiration policies.
cli command changes attribute value:
/profile=full-ha/subsystem=infinispan/cache-container=hibernate/invalidation-cache=entity:write-attribute(name=mode, value=async)
Comments
Post a Comment