manager = CacheManager.create();   cache = new Cache(CACHE_NAME, Integer.MAX_VALUE, false, false, minutesToIdle * 60, minutesToIdle * 60); manager.addCache(cache);
    public void afterPropertiesSet() throws Exception {        if (CacheManager.getInstance().cacheExists(CACHE_NAME)) {            CacheManager.getInstance().removeCache(CACHE_NAME);        }        manager = CacheManager.create();        // Cache name, max memory, overflowToDisk, eternal, timeToLive, timeToIdle        cache = new Cache(CACHE_NAME, Integer.MAX_VALUE, false, false,                minutesToIdle * 60, minutesToIdle * 60);        manager.addCache(cache);    }