APGen Documentation Previous Topic: ASPCache.Hits() Next Topic: ASPCache.SetExpiration() Parent Topic: ASPCache Object    ASPCache Object
ASPCache.Expiration()
See Also:

Returns the period of time before an item expires.

Syntax

VBScript:

expireTime  = Cache.Expiration( key )

JScript:

expireTime  = Cache.Expiration( key );

Object

Cache An ASPCache object.

Parameters

key A string key or item handle.

Return Value

expireTime The period of time (in milliseconds) left before the item expires.  This is an integer value.

If this value is 0 or negative, the item will not be expired.

Notes

Unlike flushing, expiration is a per-item setting.  To set an item's expiration, use SetExpiration().

For more information on expiration, see the Expiration topic.