|
|
@@ -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); |
|
|
|