APGen Documentation Previous Topic: ASPCache.FlushEnabled Next Topic: ASPCache.FlushInterval Parent Topic: ASPCache Object    ASPCache Object
ASPCache.FlushTimeout
See Also:

Sets/retrieves the time (in milliseconds) an item must be unused before it is flushed from the cache.

Syntax

VBScript:

Cache.FlushTimeout = timeout

JScript:

Cache.FlushTimeout = timeout;
Object

Cache An ASPCache object.

Parameters

timeout The threshold timeout (in milliseconds) for determining if an item should be removed by a flush operation.  When an item lies unused for this period, it may be removed from the cache.

Setting a timeout of 0 disables flushing.

Notes

Flush timeout periods should be chosen carefully to balance the usefulness of the cache with resource consumption.  Too long of a timeout may enable the cache to grow too large (this can be limited by the MaxSize property).  Too short of a timeout may reduce the number of cache hits, and thus reduce the effectiveness of the cache.

Other properties related to flushing are FlushEnabled and FlushInterval.  For more information on flushing, see Flushing.

Flushing is one technique to limit the resource consumption of the cache.  Other available techniques are shrinking and expiration.