if (expirationSeconds > 0) {
properties.put(GCacheFactory.EXPIRATION_DELTA, expirationSeconds);
}
try {
CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory();
memcache = cacheFactory.createCache(properties);
} catch (CacheException ex) {
throw new RuntimeException(ex);
}
}