郑根木 pirms 2 gadiem
vecāks
revīzija
487ae11278
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. +4
    -3
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/cache/AbstractCache.java

+ 4
- 3
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/cache/AbstractCache.java Parādīt failu

@@ -244,14 +244,15 @@ public abstract class AbstractCache<T extends Serializable> implements ISwCache<
* @param key
*/
protected void doRemove(String key) {
T bean = getOrg(key);
T oldbean = getOrg(key);
T bean = get(key);
if (bean != null) {
for (Map.Entry<String, IGetBeanKey<T>> entry : mapListReg.entrySet()) {
doRemoveList(entry.getKey(), getBeanKey(entry.getValue(), bean), bean);
doRemoveList(entry.getKey(), getBeanKey(entry.getValue(), oldbean), bean);
}

for (Map.Entry<String, IGetBeanKey<T>> entry : mapMapReg.entrySet()) {
doRemoveMap(entry.getKey(), getBeanKey(entry.getValue(), bean));
doRemoveMap(entry.getKey(), getBeanKey(entry.getValue(), oldbean));
}
}
cache.invalidate(key);


Notiek ielāde…
Atcelt
Saglabāt