Permalink
Browse files

Added optional interface to remove cache entries by pattern or regex.

  • Loading branch information...
jgeurts committed Oct 12, 2012
1 parent 8d572dc commit 00152956321e82e24e9f59abfe588b000054022a
@@ -0,0 +1,16 @@
+namespace ServiceStack.CacheAccess
+{
+ public interface IRemoveByPattern
+ {
+ /// <summary>
+ /// Removes items from cache that have keys matching the specified wildcard pattern
+ /// </summary>
+ /// <param name="pattern">The wildcard, where "*" means any sequence of characters and "?" means any single character.</param>
+ void RemoveByPattern(string pattern);
+ /// <summary>
+ /// Removes items from the cache based on the specified regular expression pattern
+ /// </summary>
+ /// <param name="regex">Regular expression pattern to search cache keys</param>
+ void RemoveByRegex(string regex);
+ }
+}
Oops, something went wrong.

0 comments on commit 0015295

Please sign in to comment.