@cubejs-backend/shared
Advanced tools
Comparing version 0.26.2 to 0.26.7
@@ -6,2 +6,14 @@ # Change Log | ||
## [0.26.7](https://github.com/cube-js/cube.js/compare/v0.26.6...v0.26.7) (2021-02-09) | ||
### Features | ||
* Support for Redis Sentinel + IORedis driver. fix [#1769](https://github.com/cube-js/cube.js/issues/1769) ([a5e7972](https://github.com/cube-js/cube.js/commit/a5e7972485fa97faaf9965b9794b0cf48256f484)) | ||
* Use REDIS_URL for IORedis options (with santinels) ([988bfe5](https://github.com/cube-js/cube.js/commit/988bfe5526be3506fe7b773d247ad89b3287fad4)) | ||
## [0.26.2](https://github.com/cube-js/cube.js/compare/v0.26.1...v0.26.2) (2021-02-01) | ||
@@ -8,0 +20,0 @@ |
@@ -19,2 +19,12 @@ export declare class InvalidConfiguration extends Error { | ||
dbPollMaxInterval: () => number; | ||
redisPoolMin: () => number; | ||
redisPoolMax: () => number; | ||
redisUseIORedis: () => boolean; | ||
redisUrl: () => string | undefined; | ||
dbSsl: () => boolean; | ||
dbSslRejectUnauthorized: () => boolean; | ||
nodeEnv: () => string | undefined; | ||
cacheAndQueueDriver: () => string | undefined; | ||
redisPassword: () => string | undefined; | ||
redisTls: () => boolean; | ||
}; | ||
@@ -21,0 +31,0 @@ declare type Vars = typeof variables; |
@@ -87,6 +87,35 @@ "use strict"; | ||
return convertTimeStrToMs(value, 'CUBEJS_DB_POLL_MAX_INTERVAL'); | ||
} | ||
}, | ||
redisPoolMin: () => env_var_1.get('CUBEJS_REDIS_POOL_MIN') | ||
.default('2') | ||
.asInt(), | ||
redisPoolMax: () => env_var_1.get('CUBEJS_REDIS_POOL_MAX') | ||
.default('1000') | ||
.asInt(), | ||
redisUseIORedis: () => env_var_1.get('CUBEJS_REDIS_USE_IOREDIS') | ||
.default('false') | ||
.asBoolStrict(), | ||
redisUrl: () => env_var_1.get('REDIS_URL') | ||
.asString(), | ||
dbSsl: () => env_var_1.get('CUBEJS_DB_SSL') | ||
.default('false') | ||
.asBoolStrict(), | ||
dbSslRejectUnauthorized: () => env_var_1.get('CUBEJS_DB_SSL_REJECT_UNAUTHORIZED') | ||
.default('false') | ||
.asBoolStrict(), | ||
nodeEnv: () => env_var_1.get('NODE_ENV') | ||
.asString(), | ||
cacheAndQueueDriver: () => env_var_1.get('CUBEJS_CACHE_AND_QUEUE_DRIVER') | ||
.asString(), | ||
redisPassword: () => env_var_1.get('REDIS_PASSWORD') | ||
.asString(), | ||
redisTls: () => env_var_1.get('REDIS_TLS') | ||
.default('false') | ||
.asBoolStrict() | ||
}; | ||
function getEnv(key) { | ||
return variables[key](); | ||
if (key in variables) { | ||
return variables[key](); | ||
} | ||
throw new Error(`Unsupported env variable: "${key}"`); | ||
} | ||
@@ -93,0 +122,0 @@ exports.getEnv = getEnv; |
{ | ||
"name": "@cubejs-backend/shared", | ||
"version": "0.26.2", | ||
"version": "0.26.7", | ||
"description": "Shared code for Cube.js backend packages", | ||
@@ -45,3 +45,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "31ebdabbe4ab56d209960522be3c4c24cd4b84db" | ||
"gitHead": "3e15dcbe3b18998fe10ef1406e9461274dce7fde" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62911
628