public void removeResult(boolean entityCacheEnabled, Class<?> clazz, Serializable primaryKey) { if (!PropsValues.VALUE_OBJECT_ENTITY_CACHE_ENABLED || !entityCacheEnabled || !CacheRegistryUtil.isActive()) { return; } if (_localCacheAvailable) { Map<Serializable, Object> localCache = _localCache.get(); Serializable localCacheKey = _encodeLocalCacheKey(clazz, primaryKey); localCache.remove(localCacheKey); } PortalCache portalCache = _getPortalCache(clazz.getName(), true); Serializable cacheKey = _encodeCacheKey(primaryKey); portalCache.remove(cacheKey); }
public void remove(String name, String key) { PortalCache portalCache = getCache(name); portalCache.remove(key); }
/** @deprecated */ public void remove(PortalCache portalCache, String key) { portalCache.remove(key); }