Class StaticMetadataCache
Static metadata cache implementation.
Uses thread-safe ConcurrentDictionary in static fields.
public class StaticMetadataCache : IStaticMetadataCache
Inheritance
Implements
Methods
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
GetStructure(long)
Get structure by ID from static cache.
public RedbStructure? GetStructure(long structureId)
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)