Getting an item on the CacheManager - requires a function param ??

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I'm trying to GET an item on the CacheManager and it seems that the last parameter expects to be a function to be called to load the data ...but I don't really need that.

SCENARIO:
To ADD an entry on the _CacheManager ..i use
>> _cacheManager.Set("EWSRates", _list, 5000);

To GET an entry from the _CacheManager ...
>> _cacheManager.Get("EWSRates", () => { return FUNCTION XXX; })

QUESTION:
How can I get an object out of the CacheManager ..without having to pass a function??
12 years ago
if (cacheManager.IsSet("EWSRates"))
{
    var result = cacheManager.Get<int>("EWSRates");
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.