简体   繁体   English

从JCS缓存中获取所有键和值

[英]Getting all the key and values from JCS Cache

I'm using JCS cache. 我正在使用JCS缓存。 I want to retrieve all the keys and value from the specific region. 我想从特定区域检索所有键和值。

JCS jcsInstance=JCS.getInstance("regionName");

How can I achieve it? 我该如何实现?

In Group Cache access class there is a method available called getGroupKeys(String groupName) .You can pass in the Group name and get all the keys in that group and iterate over it. 在“组缓存”访问类中,有一个名为getGroupKeys(String groupName) 。您可以传入“组名”并获取该组中的所有键并对其进行迭代。

See the documentation for more info. 请参阅文档以获取更多信息。

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

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