Interface ISchemeMetadataCache
Specialized cache for object schemes.
Fast access to scheme metadata by type, ID and name.
public interface ISchemeMetadataCache
Methods
GetAllCachedSchemes()
Get all cached schemes (for diagnostics).
Dictionary<long, RedbScheme> GetAllCachedSchemes()
GetSchemeByNameAsync(string)
Get scheme by name.
Task<RedbScheme?> GetSchemeByNameAsync(string schemeName)
GetSchemeByTypeAsync<TProps>()
Get scheme by .NET type (most common case).
Task<RedbScheme?> GetSchemeByTypeAsync<TProps>() where TProps : class
InvalidateSchemeForType(Type)
Remove scheme from cache by type.
void InvalidateSchemeForType(Type type)
InvalidateSchemeForType<TProps>()
Remove scheme from cache by type.
void InvalidateSchemeForType<TProps>() where TProps : class
SetSchemeForType(Type, RedbScheme)
Add or update scheme in cache with type binding.
void SetSchemeForType(Type type, RedbScheme scheme)
SetSchemeForType<TProps>(RedbScheme)
Add or update scheme in cache with type binding.
void SetSchemeForType<TProps>(RedbScheme scheme) where TProps : class