public void Remove(string keyPrefix) { var cacheHits = Cache.Where(c => c.Key.StartsWith(keyPrefix)).ToList(); foreach (var cacheHit in cacheHits) { Cache.Remove(cacheHit); } }