API Reference > ecschema-metadata > Context > SchemaCache > addSchema addSchema Method Adds a schema to the cache. Does not allow for duplicate schemas, checks using SchemaMatchType.Latest. addSchema<T extends Schema<T>>(schema: T): Promise<void> Parameter Type Description schema T The schema to add to the cache. Returns - Promise<void> Defined in core/ecschema-metadata/src/Context.ts Line 65 Last Updated: 11 June, 2024