Interface IStaticMetadataCache

Assembly: redb.Core.dll

Interface for static metadata cache in RedbObject.
Implements user's suggestion for storing cache in static fields.

public interface IStaticMetadataCache

Methods

ClearAll()

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

void ClearAll()

GetCompleteMetadataForType<TProps>()

Get complete metadata for type from static cache.

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

GetSchemeForType(Type)

Get scheme for .NET type from static cache.

RedbScheme? GetSchemeForType(Type type)

GetSchemeForType<TProps>()

Get scheme for .NET type from static cache.

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

GetStatistics()

Get static cache statistics.

StaticCacheStatistics GetStatistics()

GetStructure(long)

Get structure by ID from static cache.

RedbStructure? GetStructure(long structureId)

GetType(long)

Get type by ID from static cache.

RedbType? GetType(long typeId)

RemoveSchemeForType<TProps>()

Remove scheme for type from static cache.

void RemoveSchemeForType<TProps>() where TProps : class

SetCompleteMetadataForType<TProps>(CompleteSchemeMetadata)

Set complete metadata for type in static cache.

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

SetSchemeForType(Type, RedbScheme)

Set scheme for .NET type in static cache.

void SetSchemeForType(Type type, RedbScheme scheme)

SetSchemeForType<TProps>(RedbScheme)

Set scheme for .NET type in static cache.

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

SetStructure(RedbStructure)

Set structure in static cache.

void SetStructure(RedbStructure structure)

SetType(RedbType)

Set type in static cache.

void SetType(RedbType type)