Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JCS 缓存。我想从特定区域检索所有键和值。
JCS jcsInstance=JCS.getInstance("regionName");
我怎样才能实现它?
在 Group Cache 访问类中有一个可用的方法,称为getGroupKeys(String groupName)。您可以传入 Group 名称并获取该组中的所有键并对其进行迭代。
getGroupKeys(String groupName)
有关更多信息,请参阅文档。