Skip to content

ISwr.InvalidateByPrefix method

Removes all cache entries whose keys start with the given prefix. Useful for invalidating related endpoints (e.g., all “/api/users” entries).

public void InvalidateByPrefix(string prefix)
parameterdescription
prefixThe key prefix to match. All entries with keys starting with this prefix are removed.