IRemoveByPatternAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRemoveByPatternAsync
Methods
RemoveByPatternAsync(String, CancellationToken)
Removes items from cache that have keys matching the specified wildcard pattern
View Source
Declaration
Task RemoveByPatternAsync(string pattern, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
System.String | pattern | The wildcard, where "*" means any sequence of characters and "?" means any single character. |
|
| System.Threading.CancellationToken
| token | |
RemoveByRegexAsync(String, CancellationToken)
Removes items from the cache based on the specified regular expression pattern
View Source
Declaration
Task RemoveByRegexAsync(string regex, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
System.String | regex | Regular expression pattern to search cache keys |
|
| System.Threading.CancellationToken
| token | |