Package org.jeecgframework.core.annotation

Examples of org.jeecgframework.core.annotation.Ehcache.eternal()


    //Ehcache flag =joinPoint.getTarget().getClass().getMethod(methodName).getAnnotation(Ehcache.class);
    Object result;
    String cacheKey = getCacheKey(targetName, methodName, arguments);
   
    Element element = null;
    if(flag.eternal()){
      //永久缓存
       element = dictCache.get(cacheKey);
    }else{
      //临时缓存
       element = eternalCache.get(cacheKey);
View Full Code Here


      } else {
        result = joinPoint.proceed();
      }

      element = new Element(cacheKey, (Serializable) result);
      if(flag.eternal()){
        //永久缓存
        dictCache.put(element);
      }else{
        //临时缓存
        eternalCache.put(element);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.