M
mesut
Hi colleagues,
I have a small issue. I don't know how to solve it. I'm caching a
property value : True or False. I do this manually and it works. But I
would like to remove the cache if the the time is 23:59 o'clock. How
can I automatically release the cache at 23:59 or 23:00 o'clock? Look
at line 7. I don't know what the syntax is. Can someone help me?
Idea is if the time raises 23:59:00 o'clock the cache need to be
removed automatically. I only want to cache until the end of the day.
The other day it should be dissapeared.
thanks in advance for your help,
mesut
1 Public Property Frozen() As Boolean
2 GET
3 ' ... END GET
4 Set(ByVal value As Boolean)
5 If value Then
6 Cache(FrozenCacheKey) = True
7 Cache.Insert(FrozenCacheKey, value, Nothing,
DateTime(("23:59:00")))
8 Else
9 If Not Cache(FrozenCacheKey) Is Nothing Then
10 Cache.Remove(FrozenCacheKey)
11 End If
12 End If
13 End Set
End Property
I have a small issue. I don't know how to solve it. I'm caching a
property value : True or False. I do this manually and it works. But I
would like to remove the cache if the the time is 23:59 o'clock. How
can I automatically release the cache at 23:59 or 23:00 o'clock? Look
at line 7. I don't know what the syntax is. Can someone help me?
Idea is if the time raises 23:59:00 o'clock the cache need to be
removed automatically. I only want to cache until the end of the day.
The other day it should be dissapeared.
thanks in advance for your help,
mesut
1 Public Property Frozen() As Boolean
2 GET
3 ' ... END GET
4 Set(ByVal value As Boolean)
5 If value Then
6 Cache(FrozenCacheKey) = True
7 Cache.Insert(FrozenCacheKey, value, Nothing,
DateTime(("23:59:00")))
8 Else
9 If Not Cache(FrozenCacheKey) Is Nothing Then
10 Cache.Remove(FrozenCacheKey)
11 End If
12 End If
13 End Set
End Property