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

Returns the number of hits on an item in the cache.

Syntax

VBScript:

nHits = Cache.Hits( key )

JScript:

nHits = Cache.Hits( key );

Object

Cache An ASPCache object.

Parameters

key A string key or item handle .

Return Value

nHits The number of hits on this item since it was added to the cache.

Notes

When an item is added, it start with 0 hits.  Reads and writes (using the Item property) both add 1 to an item's hit count.  Reading or writing an item's other properties (such as Expiration or TimeInCache) do not affect its hit count.