// This is linked to keep insertion order
Set<CacheEntry<Object, String>> valuesInserted = new HashSet<>();
Cache<Object, String> cache = cache(0, CACHE_NAME);
for (int i = 0; i < 3; ++i) {
Object key = getKeyTiedToCache(cache);
TimeUnit unit = TimeUnit.MINUTES;
cache.put(key, key.toString(), 10, unit, i + 1, unit);
valuesInserted.add(new TransientMortalCacheEntry(key, key.toString(), unit.toMillis(i + 1), unit.toMillis(10),
System.currentTimeMillis()));
}
EntryRetriever<Object, String> retriever = cache(0, CACHE_NAME).getAdvancedCache().getComponentRegistry().getComponent(
EntryRetriever.class);