ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Cache insert vs add

Categories: .Net

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.