简体   繁体   English

使用CLI的Infinispan缓存逐出

[英]Infinispan cache eviction using CLI

I have a couple of entities for JBoss 7, where I set the caching as annotation like: 对于JBoss 7,我有几个实体,在其中将缓存设置为注释,例如:

@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. 在以前的JBoss 7(Infinispan)中,我使用了MBean进行了哪些刷新。 But now JBoss 7 is not the case, so I need a solution based on something what can be elaborated programatically (ex. CLI) 但是现在JBoss 7并非如此,因此我需要一个基于可以通过编程详细说明的东西(例如CLI)的解决方案。

Does anybody know how to evict manually an Infinispan local cache using CLI? 有人知道如何使用CLI手动退出Infinispan本地缓存吗?

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. 我在独立模式和jboss-cli中使用JBoss 7,对于逐出操作,无法指定区域名称。

Any hint? 有什么提示吗?

SK SK

Infinispan doesn't have regions, you can only clear the entire cache. Infinispan没有区域,您只能清除整个缓存。

On the other hand, Hibernate should create a separate Infinispan cache for each region. 另一方面,Hibernate应该为每个区域创建一个单独的Infinispan缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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