Skip to main content
Version: Next

invalidate

invalidate(tag): Promise<void>

Removes a cached value by its tag

await invalidate('user:123');
ParameterTypeOptionalDescription
tagstringThe cache tag to invalidate