Friday 6 June 2014

What is the difference between adding items into cache through the Add() method and through the Insert() method?

Both methods work in a similar way except that the Cache.Add() function returns an object that represents the item you added in the cache. The Cache.Insert() function can replace an existing item in the cache, which is not possible using the Cache.Add() method.

No comments: