public List <Value> GetAll(string CacheKeyPrefix) { List <string> keys = mc.Get_Keys(CacheKeyPrefix); List <Value> data = new List <Value>(); IDictionary <string, object> fromcache = mc.Get_Multi(keys); //var fromcache = mc.Get_Multi(keys); foreach (string key in keys) { if (fromcache.ContainsKey(key)) { data.Add((Value)fromcache[key]); } } return(data); }