📄 cache
字号:
Public Expires
Private Sub Class_Initialize()
Expires = DateAdd("n", 20, Now())
End Sub
Public Default Property Get Item(ByVal strName)
If IsEmpty(GetCache(strName)) Then Exit Property
Dim dtmCache
dtmCache = GetCache(strName & ".Expires")
If DateDiff("s", dtmCache, Now()) > 0 Then Exit Property
If VarType(GetCache(strName)) = vbObject Then
Set Item = GetCache(strName)
Else
Item = GetCache(strName)
End If
End Property
Public Property Let Item(ByVal strName, vtValue)
SetCache strName, vtValue
SetCache strName & ".Expires", Expires
End Property
Public Sub Remove(ByVal strName)
DelCache strName
DelCache strName & ".Expires"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -