|
ASPCache Object |
|
See Also: |
Returns the string key corresponding to this handle.
VBScript:
JScript:
| Cache | An ASPCache object. |
| h | A handle to an item in the cache. |
| sKey | The string key for the item. |
KeyOf is the inverse of HandleOf.
This example displays all the items in the cache:
<% @LANGUAGE="VBScript" %>
<% Option Explicit %>
<%
'-------------------------------------------------------------------
' display.asp
'
' WebGecko Software, Copyright(c) 2000
' Author: johnc
'
' Description: Display contents of the ASPCache
'-------------------------------------------------------------------
%>
<HTML><HEAD>
<META http-equiv="refresh" content="2" >
</HEAD><BODY>
<H2>Displaying contents of ASPCache:</H2>
<P>There are <% =Cache.Count %> items in the ASPCache.</P>
<P>Start time: <% =Now %></P>
<table>
<tr><th>Key</th><th>Value</th></tr>
<%
Dim h
For Each h in Cache %>
<tr><td><% =Cache.KeyOf(h) %></td><td><% =Cache(h) %></td></tr> <%
Next
%>
</table>
<P>End time: <% =Now %></P>
</BODY></HTML>