Ejemplo n.º 1
0
        public void TestRemove()
        {
            var instance = Model.CreateNew();
            var key      = "TestRemove";

            dict.Add(key, instance);
            Assert.True(dict.ContainsKey(key));
            Assert.True(dict.Remove(key));
            Assert.False(dict.ContainsKey(key));
        }
Ejemplo n.º 2
0
        public static void RemoveFromDictionary(string command, RedisDictionary redisDictionary)
        {
            int wordStartIndex = command.IndexOf(' ') + 1;

            string word = command.Substring(wordStartIndex, command.Length - wordStartIndex).Trim();

            redisDictionary.Remove(word);
        }
Ejemplo n.º 3
0
 public void Remove(string id)
 {
     Logger.Log("Removing active trip " + id);
     dict.Remove(id);
 }