Class StaticMetadataCache

Assembly: redb.Core.dll

Static metadata cache implementation.
Uses thread-safe ConcurrentDictionary in static fields.

public class StaticMetadataCache : IStaticMetadataCache

Inheritance

ObjectStaticMetadataCache

Implements

Methods

ClearAll()

Clear all static cache (caution - affects all instances!).

public void ClearAll()

GetCompleteMetadataForType<TProps>()

Get complete metadata for type from static cache.

public CompleteSchemeMetadata? GetCompleteMetadataForType<TProps>() where TProps : class

GetSchemeForType(Type)

Get scheme for .NET type from static cache.

public RedbScheme? GetSchemeForType(Type type)

GetSchemeForType<TProps>()

Get scheme for .NET type from static cache.

public RedbScheme? GetSchemeForType<TProps>() where TProps : class

GetStatistics()

Get static cache statistics.

public StaticCacheStatistics GetStatistics()

GetStructure(long)

Get structure by ID from static cache.

public RedbStructure? GetStructure(long structureId)

GetType(long)

Get type by ID from static cache.

public RedbType? GetType(long typeId)

RemoveSchemeForType<TProps>()

Remove scheme for type from static cache.

public void RemoveSchemeForType<TProps>() where TProps : class

SetCompleteMetadataForType<TProps>(CompleteSchemeMetadata)

Set complete metadata for type in static cache.

public void SetCompleteMetadataForType<TProps>(CompleteSchemeMetadata metadata) where TProps : class

SetSchemeForType(Type, RedbScheme)

Set scheme for .NET type in static cache.

public void SetSchemeForType(Type type, RedbScheme scheme)

SetSchemeForType<TProps>(RedbScheme)

Set scheme for .NET type in static cache.

public void SetSchemeForType<TProps>(RedbScheme scheme) where TProps : class

SetStructure(RedbStructure)

Set structure in static cache.

public void SetStructure(RedbStructure structure)

SetType(RedbType)

Set type in static cache.

public void SetType(RedbType type)