Exemplo n.º 1
0
 public bool Equals(RedisInstance other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Host == other.Host && Port == other.Port);
 }
Exemplo n.º 2
0
 public RedisAnalyzer(RedisInstance instance)
 {
     Instance    = instance;
     KeyMatchers = instance.ConnectionInfo.Settings.AnalysisRegexes
                   .Where(r => r.Value.HasValue())
                   .Select(r => new KeyMatcher {
         Name = r.Key, Regex = new Regex(r.Value, RegexOptions.Compiled)
     })
                   .ToList();
     KeyMatchers.Add(new KeyMatcher {
         Name = "Other (unrecognized)", Regex = new Regex(".", RegexOptions.Compiled)
     });
 }
Exemplo n.º 3
0
 public static void ClearDatabaseMemoryAnalysisCache(RedisInstance instance, int database)
 {
     instance.MemCache.Remove(GetMemoryAnalysisKey(instance.ConnectionInfo, database));
 }