Skip to content

TableInfoCacheCoordinator Class ​

Definition ​

Unified cache identity and invalidation for TableInfo-backed Suite caches.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Properties ​

NameDescription
EnsuresGets the number of successful ensure calls since process start.
InvalidationsGets the number of shape keys removed via invalidate APIs since process start.
TrackedKeyCountGets the number of distinct TableInfoKey values currently tracked.
TrackedTableCountGets the number of distinct schema.table entries currently tracked.

Methods ​

NameDescription
TableInfo Ensure(TableInfo table, ISqlGenerator generator, TableInfoOptions options = null, ulong? shapeSignature = null)Ensures a TableInfo has a CacheKey and is tracked.
TableInfo Ensure(Type entityType, ISqlGenerator generator, string schema = null, TableInfoOptions options = null)Ensures a POCO-mapped TableInfo is cached and tracked for invalidation.
int GetTrackedShapeCount(string schema, string tableName)Returns the number of tracked shape revisions for a schema/table.
bool Invalidate(TableInfo table)Flushes Suite caches for the supplied TableInfo shape (POCO or dynamic).
bool Invalidate(TableInfoKey key)Flushes Suite caches for a specific TableInfoKey.
bool Invalidate(Type entityType, ISqlGenerator generator, string schema = null, TableInfoOptions options = null)Flushes Suite caches for a mapped POCO type (all tracked schema/options variants).
int Invalidate(string schema, string tableName)Flushes all tracked shapes for a physical schema/table.
int InvalidateAll()Flushes every tracked key and clears associated Suite caches.
bool IsPocoCached(Type entityType, ISqlGenerator generator, string schema = null, TableInfoOptions options = null)Returns whether a POCO TableInfo for entityType is present in the type metadata cache.
bool IsTracked(TableInfoKey key)Returns true when the given key is currently tracked by the coordinator.

Remarks ​

All operational caches (statements, pools, binders, materializers, select templates) are keyed by CacheKey. POCO and hand-built/dynamic shapes share this pipeline; they differ only in how TableInfo is produced.

Call Ensure for mapped types, or Ensure for runtime shapes. Call Invalidate / Invalidate when metadata changes.