Interface IStaticMetadataCache
Interface for static metadata cache in RedbObject.
Implements user's suggestion for storing cache in static fields.
public interface IStaticMetadataCache
Methods
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
GetStructure(long)
Get structure by ID from static cache.
RedbStructure? GetStructure(long structureId)
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