Show / Hide Table of Contents

Class BaseFlushCacheAndBroadcastPlugin

Inheritance
object
BaseFlushCacheAndBroadcastPlugin
Implements
IFlushCacheAndBroadcastPlugin
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
public abstract class BaseFlushCacheAndBroadcastPlugin : IFlushCacheAndBroadcastPlugin

Constructors

BaseFlushCacheAndBroadcastPlugin(ICacheFlusher)

Declaration
public BaseFlushCacheAndBroadcastPlugin(ICacheFlusher cacheFlusher)
Parameters
Type Name Description
ICacheFlusher cacheFlusher

Methods

BroadcastAsync(string, string, CancellationToken)

Declaration
protected abstract Task BroadcastAsync(string cacheName, string revisionId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string cacheName
string revisionId
CancellationToken cancellationToken
Returns
Type Description
Task

FlushAndBroadcastAsync(IEnumerable<string>, CancellationToken)

Flushes the caches and broadcast

Declaration
public Task FlushAndBroadcastAsync(IEnumerable<string> cacheNames, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<string> cacheNames

Caches to flush. Input can be technical name of the cache, or it can be the table name from the database and it'll do a lookup to find all the caches that's associated with that table and flush.

CancellationToken cancellationToken
Returns
Type Description
Task

OnExternalFlush(string, string, string)

Declaration
protected void OnExternalFlush(string databaseContextId, string cacheName, string revisionId)
Parameters
Type Name Description
string databaseContextId
string cacheName
string revisionId

Implements

IFlushCacheAndBroadcastPlugin

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
FlushCacheAndBroadcastPluginExtensions.FlushAndBroadcastAsync(IFlushCacheAndBroadcastPlugin, params string[])
FlushCacheAndBroadcastPluginExtensions.FlushAndBroadcastAsync(IFlushCacheAndBroadcastPlugin, CancellationToken, params string[])
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top