private void ClearCache(string id)
        {
            if (!cacheDictionary.ContainsKey(id))
            {
                cacheDictionary.AddValue(id, new Dictionary <string, string>());
            }
            var dict = cacheDictionary.GetValue(id);

            dict.Remove("next");
        }
Exemplo n.º 2
0
        private void SetCache(string id)
        {
            if (!cacheDictionary.ContainsKey(id))
            {
                cacheDictionary.AddValue(id, new Dictionary <string, string>());
            }
            var dict = cacheDictionary.GetValue(id);

            dict["next"] = this.Name;
        }