Skip to main content

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
TypeNameDescription
System.StringpatternThe 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
TypeNameDescription
System.StringregexRegular expression pattern to search cache keys

| | System.Threading.CancellationToken | token | |