Show / Hide Table of Contents

Class CacheFlusher

Inheritance
object
CacheFlusher
Implements
ICacheFlusher
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.BusinessLogic.dll
Syntax
public class CacheFlusher : ICacheFlusher

Constructors

CacheFlusher(ILogger<CacheFlusher>, IServiceProvider)

Declaration
public CacheFlusher(ILogger<CacheFlusher> logger, IServiceProvider serviceProvider)
Parameters
Type Name Description
ILogger<CacheFlusher> logger
IServiceProvider serviceProvider

Methods

Flush(IEnumerable<string>)

Flushes the caches

Declaration
public void Flush(IEnumerable<string> cacheNames)
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.

Flush(params string[])

Flushes the caches

Declaration
public void Flush(params string[] cacheNames)
Parameters
Type Name Description
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.

GetAllCaches()

Declaration
public IEnumerable<KeyValuePair<string, Action>> GetAllCaches()
Returns
Type Description
IEnumerable<KeyValuePair<string, Action>>

Implements

ICacheFlusher

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top