I have a question about cache manager (http://cachemanager.michaco.net/), it works great but I am in dire need of get all values from this as for now I keep all keys in separate collection and just iterate them and get values from cache that way:
private readonly List<string> keys;
public void AddToCache(string key, string[] record)
{
this.keys.Add(key);
this.cache.Add(key, record);
}
public void DumpFromCacheToCsv(bool isRequest)
{
foreach (var cachedkey in keys.ToList())
{
if (cachedkey == null) continue;
//do something with data
}
}
I am aware that this is not ideal solution, as i searched that documentation I can not fond anything about this, so is there any other way to get all values from that cache mechanism.