コード例 #1
0
 /// <summary>
 /// Removes items by pattern
 /// </summary>
 /// <param name="pattern">pattern</param>
 public virtual void RemoveByPattern(string pattern)
 {
     foreach (var ep in _connectionWrapper.GetEndpoints())
     {
         var server = _connectionWrapper.Server(ep);
         var keys   = server.Keys(pattern: "*" + pattern + "*");
         foreach (var key in keys)
         {
             _db.KeyDelete(key);
         }
     }
 }