invalidate method
Raises the tags this query carries. Refused when any of them names an owned entity type.
Implementation
bool invalidate(String key) {
_ready();
final entry = _cache.query(key);
if (entry == null) return false;
final tags = [...entry.tags];
for (final tag in tags) {
if (_cache.ownsTag(tag)) _refuse('invalidate', tag);
}
_record(ActionKind.invalidate, key);
_cache.cache.invalidate(tags);
return true;
}