Package com.dotcms.repackage.com.google.common.cache

Examples of com.dotcms.repackage.com.google.common.cache.Cache


    if(group ==null ){
      return ;
    }
    group = group.toLowerCase();

    Cache cache = getCache(group);


    if(isDiskCache(group)){
      try {
        diskCache.remove(new Fqn(group));
      } catch (Exception e) {
        Logger.debug(DotGuavaCacheAdministratorImpl.class,e.getMessage(),e);
      }
    }
    cache.invalidateAll();

  }
View Full Code Here


    if(key == null || group == null){
      return null;
    }
    key = key.toLowerCase();
    group = group.toLowerCase();
    Cache cache = getCache(group);
    Object j = null;
    try {
      j = cache.get(key, nullCallable);
    } catch (Exception e) {

    }
    return j;
  }
View Full Code Here

      try {
        Map m=diskCache.get(new Fqn(group, key));
        if(m!=null){
          j = m.get(key);
          if(j != null){
            Cache cache = getCache(group);
            cache.put(key, j);
          }
        }
      } catch (Exception e) {
        Logger.debug(DotGuavaCacheAdministratorImpl.class,e.getMessage(),e);
      }
View Full Code Here

    key = key.toLowerCase();
    group = group.toLowerCase();



    Cache cache = getCache(group);
    cache.put(key, content);

    if(isDiskCache(group)){
      try {
        diskCache.put(new Fqn(group, key), key, content);
      } catch (Exception e) {
View Full Code Here

      } catch (SQLException e) {
        Logger.error(DotGuavaCacheAdministratorImpl.class, e.getMessage(), e);
      }
    }

    Cache dCache = getCache(DEFAULT_CACHE);
    for (String group : myGroups) {
      Map<String, Object> m = new HashMap<String, Object>();
      m.put("cache", getCache(group));
      String region = group.toString();
      m.put("region", region);

      m.put("toDisk", new Boolean(isDiskCache(group)));
      boolean isDefault = false;


      try {
        Cache n = getCache(group);
        m.put("memory", n.size());

        m.put("CacheStats", n.stats());
        isDefault = (!DEFAULT_CACHE.equals(group) && n.equals(dCache));

      } catch (Exception e) {

      }
      m.put("isDefault", isDefault);
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.com.google.common.cache.Cache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.