Fix parameter name (#3001)

This commit is contained in:
Steven Shipton
2016-11-03 14:01:31 +00:00
committed by Florent Vilmart
parent fb6150feb1
commit 5f335a9d30

View File

@@ -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);
}
}