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