--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/b1d4e889-ca54-45e3-a82d-6570921f0813%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cache cache = (Cache) cacheManager.getCache("yourCacheName").getNativeCache();
Iterator<Cache.Entry> iterator = cache.iterator();
while (iterator.hasNext()) {
String key = (String) iterator.next().getKey();
System.out.println(key);
}
I’m guessing you’re using clustered caches? If so clustered iterators where not implemented until 3.7.1 (if I recall correctly). If this is the case then you should try upgrading to the latest version of Ehcache (3.8.1) and try again. If my clustered guess is wrong could you reply with your cache configuration and I’ll attempt to dig further.
Thanks,
Chris
--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ehcache-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ehcache-users/51ccf205-fbbe-4d01-85cd-121cebc733df%40googlegroups.com.