遍历缓存
Cache[] ch = CacheFactory.getAllCaches(); for (int i = 0; i < ch.length; i++) { System.out.println(i + "==" + ch[i].getName()); } CacheFactory.clearCaches();
通过缓存名称清理缓存
CacheFactory.destroyCache("Roster");
清理所有缓存
CacheFactory.clearCaches();