/** * @param key * @return */ private static CachedRenderResult cacheget(String key) { if (altCache != null) { return altCache.get(key); } else { return (CachedRenderResult) Cache.get(key); } }
public static void delete(String key) { if (altCache != null) { altCache.delete(key); } else { Cache.delete(key); } }
/** * @param key * @param ttl * @param cachedItemStatus */ private static void cacheset(String key, String ttl, CachedRenderResult rrc) { if (altCache != null) { altCache.set(key, rrc, ttl); } else { Cache.set(key, rrc, ttl); } }