简体   繁体   中英

Infinispan cache eviction using CLI

I have a couple of entities for JBoss 7, where I set the caching as annotation like:

@Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL, region = "USERS")

and time to time I need to evict (flush) this cache region. Prior JBoss 7 (Infinispan) I used an MBean what did this flushing. But now JBoss 7 is not the case, so I need a solution based on something what can be elaborated programatically (ex. CLI)

Does anybody know how to evict manually an Infinispan local cache using CLI?

I am using JBoss 7 in standalone mode and in jboss-cli, for the eviction operation there is no way to specify the region's name.

Any hint?

SK

Infinispan doesn't have regions, you can only clear the entire cache.

On the other hand, Hibernate should create a separate Infinispan cache for each region.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM