ISwr.MutateAsync method
ISwr.MutateAsync method
Section titled “ISwr.MutateAsync method”Executes a mutation action and invalidates the specified cache keys. If the mutation throws, no cache keys are evicted.
public Task MutateAsync(Func<Task> mutation, params string[] invalidateKeys)| parameter | description |
|---|---|
| mutation | The async action to execute (e.g., a POST/PUT/DELETE call). |
| invalidateKeys | Cache keys to evict after the mutation completes successfully. |