⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cache.asp

📁 WAPmo手机网站管理平台是一款创建与管理维护WAP网站的的软件产品
💻 ASP
字号:
<%
'****************************************************************
'
' Library       Cache
'
'****************************************************************

Private Function GetCacheName(ByVal strName)
    Dim ret
    ret = "ASP.Cache.$1"
    ret = Replace(ret, "$1", strName)
    ret = Replace(ret, ".", "_")
    GetCacheName = ret
End Function

Public Function GetCache(ByVal strName)
    Dim strCacheName
    strCacheName = GetCacheName(strName)
    If VarType(Application.Contents(strCacheName)) = vbObject Then
        Set GetCache = Application.Contents(strCacheName)
    Else
        GetCache = Application.Contents(strCacheName)
    End If
End Function

Public Sub SetCache(ByVal strName, vtValue)
    Dim strCacheName
    strCacheName = GetCacheName(strName)
    Application.Lock
    If VarType(vtValue) = vbObject Then
        Set Application.Contents(strCacheName) = vtValue
    Else
        Application.Contents(strCacheName) = vtValue
    End If
    Application.Unlock
End Sub

Public Sub DelCache(ByVal strName)
    Application.Lock
    Application.Contents.Remove GetCacheName(strName)
    Application.Unlock
End Sub

Public Function HasCache(ByVal strName)
    HasCache = CBool(Not IsEmpty(GetCache(strName)))
End Function
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -