public synchronized void keyChanged(long oldKey, long newKey) {
		processQueue();

		KeyedSoftReference<T> ref = map.remove(oldKey);
		if (ref != null) {
			map.put(newKey, ref);
			T t = ref.get();
			if (t != null) {
				t.setInvalid();
			}
		}
	}
Removes the object with the given key from the cache.
@param key the key of the object to remove.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DBObjectCache.java