|
@@ -244,14 +244,15 @@ public abstract class AbstractCache<T extends Serializable> implements ISwCache< |
|
|
* @param key |
|
|
* @param key |
|
|
*/ |
|
|
*/ |
|
|
protected void doRemove(String key) { |
|
|
protected void doRemove(String key) { |
|
|
T bean = getOrg(key); |
|
|
|
|
|
|
|
|
T oldbean = getOrg(key); |
|
|
|
|
|
T bean = get(key); |
|
|
if (bean != null) { |
|
|
if (bean != null) { |
|
|
for (Map.Entry<String, IGetBeanKey<T>> entry : mapListReg.entrySet()) { |
|
|
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()) { |
|
|
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); |
|
|
cache.invalidate(key); |
|
|