Fix schemaCacheTTL ParseServerOption is not working (#7138)
* Add Test case for checking SchemaCacheTTL * Fix schemaCacheTTL not working issue * Add Test case for TTL expires Co-authored-by: Roach Chang <roach.chang@aoitek.com>
This commit is contained in:
@@ -30,7 +30,7 @@ export default class SchemaCache {
|
||||
if (!this.ttl) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
return this.cache.put(this.prefix + MAIN_SCHEMA, schema);
|
||||
return this.cache.put(this.prefix + MAIN_SCHEMA, schema, this.ttl);
|
||||
}
|
||||
|
||||
getOneSchema(className) {
|
||||
|
||||
Reference in New Issue
Block a user