Search This Blog

Wednesday, December 1, 2010

Difference between Cache.insert and Cache.Add

Cache.Add
-Calling the Add method returns an object that represents the cached item.
-If the key already exists in the Cache the method will fail.


Cache.Insert
-Calling the Insert method does not return an object.
-If the key already exists in the Cache it will overwrite the copy in the Cache.

No comments:

Post a Comment