SchemaCache Class

Beta  

Implements

Methods

Name Description
constructor(): SchemaCache    
addSchema<T extends Schema<T>>(schema: T): Promise<void> Adds a schema to the cache.  
addSchemaSync<T extends Schema<T>>(schema: T): void Adds a schema to the cache.  
getSchema<T extends Schema<T>>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Promise<undefined | T> Gets the schema which matches the provided SchemaKey.  
getSchemaSync<T extends Schema<T>>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): undefined | T    

Properties

Name Type Description
count Accessor ReadOnly number    

Defined in

Last Updated: 12 June, 2024