What is difference between canche.insert and cache.add method

The Add and Insert methods have the same signature, but there are subtle differences between them. First, calling the Add method returns an object that represents the cached item, while calling Insert does not. Second, their behavior is different if you call these methods and add an item to the cache that is already stored there. The Insert method replaces the item, while the Add method fails.

Tagged . Bookmark the permalink.

Leave a Reply