I’m caching an object but noticed that one of the properties is being combined with the parent object when it is supposed to only get its value if the object requests it after the initial caching procedure has occurred. So my two questions are:
- Why does the cache provider not just use the property variables (not the property function) to cache the object as these are what really make the object what it is?
- How do I exclude one of these properties from being wrapped up in the cached object?
Is there some markup that I can use to indicate that the item can’t be cached similar to the nonserializable markup?
Private _SomeInfo As SomeInfo ‘(Can be cached)
Public Property SomeInfoProperty() As SomeInfo ‘(Should not be cached)
Get
If _SomeInfo Is Nothing Then
_SomeInfo = SomeInfo.GetData()
End If
Return _SomeInfo
End Get
Set(ByVal value As SomeInfo)
_SomeInfo = value
End Set
End Property