PriorityCache.itemDropped

A notifier which is fired and an item is removed from the cache.

The notifier is called after the item has already been removed. The default implementation of the notifier inits the value of the item to remove any references to it.

When overriding this method, make sure this cache is not manipulated while this method is executing (i.e. don't add or remove items) so make sure that: - neither the overriding method nor a callee manipulates this cache and - if using fibers which can be suspended while this method is running, that this cache cannot be manipulated by another fiber in this case.

class PriorityCache(T)
protected
void
itemDropped
(
hash_t key
,
ref T value
)

Parameters

key hash_t

the key of the dropped item

value T

the dropped item

Meta