APGen Documentation Previous Topic: ASPCache.TimeInCache() Next Topic: ASPCache.Remove() Parent Topic: ASPCache Object    ASPCache Object
ASPCache.TimeSinceLastUse()
See Also:

Returns the amount of time (in milliseconds) that has elapsed since an item was last accessed.

Syntax

VBScript:

timeSinceLastUse = Cache.TimeSinceLastUse( key )

JScript:

timeSinceLastUse = Cache.TimeSinceLastUse( key );

Object

Cache An ASPCache object.

Parameters

key A string key or item handle.

Return Value

timeSinceLastUse The amount of time (in milliseconds) that has elapsed since an item was last read or written.  This is an integer value.

Notes

Reads and writes (using the Item property) set an item's TimeSinceLastUse to 0.  Reading or writing an item's other properties (such as Expiration or TimeInCache) do not affect its last-use time.