EvictionRegionConfig erc = new EvictionRegionConfig();
erc.setEvictionAlgorithmConfig(new FIFOAlgorithmConfig(2));
erc.setRegionFqn(Fqn.ROOT);
ec.setDefaultEvictionRegionConfig(erc);
c.setEvictionConfig(ec);
Cache cache = new DefaultCacheFactory().createCache(c);
cache.put("/a/b/c", "a", "b");
cache.put("/a/b/c", "c", "d");
cache.put("/a/b/d", "a", "b");
cache.put("/a/b/e", "c", "d");