Package org.nutz.dao.cache

Examples of org.nutz.dao.cache.Cache.toMap()


    String className=msg.getCacheStrategy().getClassNameByTableName(tableName);
     removeRelationObjByClassName(msg, className);
  }
  public static void removeRelationObjByClassName(ObsArgClass msg, String className) {
    Cache cache=msg.getCache();
    Map<Object, Object> cacheMap=cache.toMap();
    Set<Object> keySet=cacheMap.keySet();
    for (Object key : keySet) {//这里暂时假设key是字符串
      if(key.toString().startsWith(className)){
        cache.remove(key);
      }
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.