示例#1
0
 /**
  * @param key
  * @return
  */
 private static CachedRenderResult cacheget(String key) {
   if (altCache != null) {
     return altCache.get(key);
   } else {
     return (CachedRenderResult) Cache.get(key);
   }
 }
示例#2
0
 public static void delete(String key) {
   if (altCache != null) {
     altCache.delete(key);
   } else {
     Cache.delete(key);
   }
 }
示例#3
0
 /**
  * @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);
   }
 }