Table of Contents

Class EntityCache

Namespace
The.Caching
Assembly
Instagile.dll
public sealed class EntityCache
Inheritance
EntityCache
Inherited Members

Properties

IsEnabled

public bool IsEnabled { get; }

Property Value

bool

Methods

Add(IEnumerable<IEntityQuery>)

Add queries to the cache; they'll execute in the background and store the results for future requests.

public void Add(IEnumerable<IEntityQuery> queries)

Parameters

queries IEnumerable<IEntityQuery>

Add(IEnumerable<IEntity>)

Add entities to the cache; they'll be available when next requested.

public void Add(IEnumerable<IEntity> entities)

Parameters

entities IEnumerable<IEntity>

Add(params IEntityQuery[])

Add queries to the cache; they'll execute in the background and store the results for future requests.

public void Add(params IEntityQuery[] queries)

Parameters

queries IEntityQuery[]

Add(params IEntity[])

Add entities to the cache; they'll be available when next requested.

public void Add(params IEntity[] entities)

Parameters

entities IEntity[]

Add(IEntityContext, IEnumerable<IEntityInfo>)

Add entire tables to the cache; they'll be loaded in the background and store the results for future requests.

public void Add(IEntityContext context, IEnumerable<IEntityInfo> tables)

Parameters

context IEntityContext
tables IEnumerable<IEntityInfo>

Add(IEntityContext, params IEntityInfo[])

Add entire tables to the cache; they'll be loaded in the background and store the results for future requests.

public void Add(IEntityContext context, params IEntityInfo[] tables)

Parameters

context IEntityContext
tables IEntityInfo[]

GetDiagnostics()

Gets diagnostic information about cache internals. Useful for testing, monitoring, and troubleshooting cache behavior.

public CacheDiagnostics GetDiagnostics()

Returns

CacheDiagnostics

LogStatistics()

Log cache memory usage information.

public void LogStatistics()

QuiesceAsync()

Waits for all refresh/notify operations in progress to complete.

public Task QuiesceAsync()

Returns

Task

Remove(IEnumerable<Guid>)

Remove entities from the cache; they'll be reloaded when next requested.

public void Remove(IEnumerable<Guid> entityIDs)

Parameters

entityIDs IEnumerable<Guid>

Remarks

Called by PersistenceService when a VersionConflictException occurs.

Remove(IEnumerable<IEntity>)

Remove entities from the cache; they'll be reloaded when next requested.

public void Remove(IEnumerable<IEntity> entities)

Parameters

entities IEnumerable<IEntity>

Remove(params Guid[])

Remove entities from the cache; they'll be reloaded when next requested.

public void Remove(params Guid[] entityIDs)

Parameters

entityIDs Guid[]

Remove(params IEntity[])

Remove entities from the cache; they'll be reloaded when next requested.

public void Remove(params IEntity[] entities)

Parameters

entities IEntity[]