Ben Aston
Ben Aston

Reputation: 55769

ASP.NET Data Cache - Does Overwriting Imply Removal And Re-Addition?

If I add an item to the cache named "foo", and then add another item named "foo" to the cache before the first expires, will this trigger the CacheItemRemoved event?

Upvotes: 0

Views: 168

Answers (1)

Tom Jelen
Tom Jelen

Reputation: 2579

Nope, it just overwrites the item. The item-removed callback is not invoked.

Upvotes: 1

Related Questions