I'm using EHCache 3.5.2 and having trouble getting all cache keys and cache entries.
I am using the CacheManager to create a cache. I'm then populating it with some data. I'd then like to retrieve all entries in the cache.
Some sample code:
Cache<String, Foo> cache = cacheManager.createCache("fooCache",
CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, Foo.class,
ResourcePoolsBuilder.heap(20)).build());
cache.putAll(repository.findAll().stream().collect(toMap(Foo::getId, foo -> foo)));
List<Foo> foos = cache.???
List<String> keys = cache.???
Is this possible with v3.5? It seems it was possible in older versions of EHCache.
thanks