Fix parameter name (#3001)
This commit is contained in:
committed by
Florent Vilmart
parent
fb6150feb1
commit
5f335a9d30
@@ -8,14 +8,14 @@ import defaults from '../defaults';
|
|||||||
export default class SchemaCache {
|
export default class SchemaCache {
|
||||||
cache: Object;
|
cache: Object;
|
||||||
|
|
||||||
constructor(cacheController, ttl = defaults.schemaCacheTTL, randomizePrefix = false) {
|
constructor(cacheController, ttl = defaults.schemaCacheTTL, singleCache = false) {
|
||||||
this.ttl = ttl;
|
this.ttl = ttl;
|
||||||
if (typeof ttl == 'string') {
|
if (typeof ttl == 'string') {
|
||||||
this.ttl = parseInt(ttl);
|
this.ttl = parseInt(ttl);
|
||||||
}
|
}
|
||||||
this.cache = cacheController;
|
this.cache = cacheController;
|
||||||
this.prefix = SCHEMA_CACHE_PREFIX;
|
this.prefix = SCHEMA_CACHE_PREFIX;
|
||||||
if (!randomizePrefix) {
|
if (!singleCache) {
|
||||||
this.prefix += randomString(20);
|
this.prefix += randomString(20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user