package uk.co.farwell.infinispan; import org.infinispan.Cache; import org.infinispan.manager.DefaultCacheManager; public class Test { /** * @param args */ public static void main(String[] args) throws Exception { DefaultCacheManager manager = new DefaultCacheManager("config/config.xml"); Cache cache = manager.getCache("evictionCache"); for (int i = 0; i < 10000; i++) { cache.put("key" + i, "value" + i); } cache.stop(); manager.stop(); } }