clearCache

View as MarkdownOpen in Claude

Clear the validation result cache. Useful when the schema has been reloaded or when you want to force re-validation.

Parameters

None.

Returns

void

Example

1import { SchemaUtils } from '@signalwire/sdk';
2
3const schema = new SchemaUtils();
4schema.validate(someDocument);
5schema.clearCache();
6console.log(schema.getCacheSize()); // 0