Class EntityCache
public sealed class EntityCache
- Inheritance
-
EntityCache
- Inherited Members
Properties
IsEnabled
public bool IsEnabled { get; }
Property Value
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
queriesIEnumerable<IEntityQuery>
Add(IEnumerable<IEntity>)
Add entities to the cache; they'll be available when next requested.
public void Add(IEnumerable<IEntity> entities)
Parameters
entitiesIEnumerable<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
queriesIEntityQuery[]
Add(params IEntity[])
Add entities to the cache; they'll be available when next requested.
public void Add(params IEntity[] entities)
Parameters
entitiesIEntity[]
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
contextIEntityContexttablesIEnumerable<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
contextIEntityContexttablesIEntityInfo[]
GetDiagnostics()
Gets diagnostic information about cache internals. Useful for testing, monitoring, and troubleshooting cache behavior.
public CacheDiagnostics GetDiagnostics()
Returns
LogStatistics()
Log cache memory usage information.
public void LogStatistics()
QuiesceAsync()
Waits for all refresh/notify operations in progress to complete.
public Task QuiesceAsync()
Returns
Remove(IEnumerable<Guid>)
Remove entities from the cache; they'll be reloaded when next requested.
public void Remove(IEnumerable<Guid> entityIDs)
Parameters
entityIDsIEnumerable<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
entitiesIEnumerable<IEntity>
Remove(params Guid[])
Remove entities from the cache; they'll be reloaded when next requested.
public void Remove(params Guid[] entityIDs)
Parameters
entityIDsGuid[]
Remove(params IEntity[])
Remove entities from the cache; they'll be reloaded when next requested.
public void Remove(params IEntity[] entities)
Parameters
entitiesIEntity[]