We are thinking about to use NCache from alachisoft.
Does it have a method to get all keys and values ?
We are trying to understand how we can do it?
Redis has this kind of feature, does Ncache miss this feature ?
We are thinking about to use NCache from alachisoft.
Does it have a method to get all keys and values ?
We are trying to understand how we can do it?
Redis has this kind of feature, does Ncache miss this feature ?
Does it have a method to get all keys and values? The answer is YESSS!
There are two ways to do it.
NCache has a method GetEnumerator()
which traverse through all keys present in cache.
NCache's Cache class is a key-value pair object, so you can loop through all keys using foreach loop like;
foreach (string key in _cache) // _cache is an object of 'Cache' class.
{
object value = _cache.Get(key);
// do whatever you want do further.....
}
Regards....
Try LINQ they have an example on the website: