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 {
|
||||
cache: Object;
|
||||
|
||||
constructor(cacheController, ttl = defaults.schemaCacheTTL, randomizePrefix = false) {
|
||||
constructor(cacheController, ttl = defaults.schemaCacheTTL, singleCache = false) {
|
||||
this.ttl = ttl;
|
||||
if (typeof ttl == 'string') {
|
||||
this.ttl = parseInt(ttl);
|
||||
}
|
||||
this.cache = cacheController;
|
||||
this.prefix = SCHEMA_CACHE_PREFIX;
|
||||
if (!randomizePrefix) {
|
||||
if (!singleCache) {
|
||||
this.prefix += randomString(20);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user