Click or drag to resize
ChatCacheBeacon Class
This class uses cache to control timeouts of other cached items. It does not store any data itself. It allows to invalidate caches across web farms (that's the reason why cache is used here - touching cache is propagated across web farms) or only locally.
Inheritance Hierarchy
SystemObject
  CMS.ChatChatCacheBeacon

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax
C#
public class ChatCacheBeacon

The ChatCacheBeacon type exposes the following members.

Constructors
  NameDescription
Public methodChatCacheBeacon
Constructs cache beacon. First call to IsValid method will return false.
Top
Methods
  NameDescription
Public methodInvalidate
Invalidates beacon - next call of IsValid will return false. This invalidation works across web farms.
Public methodInvalidateLocally
Invalidates beacon - next call of IsValid will return false. This invalidation works only locally.
Public methodIsValid
Checks if beacon is valid. It takes into consideration local and cache invalidation. If beacon is not valid, it calls Reset itself, so next call will return true again. First call to this method will return false. Method is thread safe.
Public methodReset
Resets timeout, so next time IsValid() will return false again after amount of time specified by persistence argument
Top
See Also