This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Called when an item expires from the cache. This method can be used to notify an application that the expiration occurred, cause the item to be refetched and refreshed from its original location, or perform any other application-specific action.

Namespace: Smartsite.Tools.Caching
Assembly:  Smartsite.Tools (in Smartsite.Tools.dll)

Syntax

C#Copy imageCopy Code
void Refresh(
	string removedKey,
	 expiredValue,
	 removalReason
)
Visual Basic (Declaration)Copy imageCopy Code
Sub Refresh ( _
	removedKey As , _
	expiredValue As , _
	removalReason As  _
)

Parameters

removedKey
String
Key of item removed from cache. Will never be null.
expiredValue
Object
Value from cache item that was just expired
removalReason
CacheItemRemovedReason
Reason the item was removed from the cache. See CacheItemRemovedReason

Remarks

This method should catch and handle any exceptions thrown during its operation. No exceptions should leak out of it.

See Also

Advanced