public static synchronized void init(Configuration conf){
  String server=conf.getString("cache.url",X.EMPTY);
  if (server.startsWith(MEMCACHED)) {
    cacheSystem=MemCache.create(conf);
  }
 else   if (server.startsWith(REDIS)) {
    cacheSystem=RedisCache.create(conf);
  }
 else {
    log.debug("not configured cache system, using file cache!");
    cacheSystem=FileCache.create(conf);
  }
  GROUP=conf.getString("cache.group","demo") + "://";
}

public static synchronized void init ( Configuration conf ) { String server = conf . getString ( "cache.url" , X . EMPTY ) ; if ( server . startsWith ( MEMCACHED ) ) { cacheSystem = MemCache . create ( conf ) ; } else if ( server . startsWith ( REDIS ) ) { cacheSystem = RedisCache . create ( conf ) ; } else { log . debug ( "not configured cache system, using file cache!" ) ; cacheSystem = FileCache . create ( conf ) ; } GROUP = conf . getString ( "cache.group" , "demo" ) + "://" ; }
initialize the cache with configuration .
