Add or Remove/Add

Jun 24, 2009 at 9:58 PM
Edited Jun 24, 2009 at 10:01 PM


I need som recommendations on this.

If their exists a key in the cache that I want to update, what is the best way of doing this.

1) Just do an Add

2) Remove and then do an Add

The reason for asking is that i have an separate windows service that updates the cache every hour and the service is using longer and longer time to update the cache for each execution. I am using approach 1.


Lars Kolsaker

Jun 24, 2009 at 10:07 PM

hi lars, just add it agian the data will be overwritten - you save yourself also an additional call to the server. regards, roni