E
Eric Gates
In MS documentation for "Add" method of "Cache" class, it says
"Calls to this method will fail if an item with the same key parameter is
already stored in the Cache."
However, when I did the following from an aspx webpage, I did not get any
exception. Is this a .NET BUG?
string key = "111";
Cache.Add(key, "222", null, DateTime.Now.AddSeconds(60), TimeSpan.Zero,
CacheItemPriority.Normal, null);
Cache.Add(key, "222", null, DateTime.Now.AddSeconds(60), TimeSpan.Zero,
CacheItemPriority.Normal, null);
Thanks,
Eric
"Calls to this method will fail if an item with the same key parameter is
already stored in the Cache."
However, when I did the following from an aspx webpage, I did not get any
exception. Is this a .NET BUG?
string key = "111";
Cache.Add(key, "222", null, DateTime.Now.AddSeconds(60), TimeSpan.Zero,
CacheItemPriority.Normal, null);
Cache.Add(key, "222", null, DateTime.Now.AddSeconds(60), TimeSpan.Zero,
CacheItemPriority.Normal, null);
Thanks,
Eric