From 42b3d0ab9c059907c92eea0d08011d5ad9d03bb4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 29 Jan 2013 13:01:17 +0100 Subject: [PATCH] Add redis timeout and reap interval options in production.js.example Use default values, for documentation purposes --- config/environments/development.js.example | 4 ++-- config/environments/production.js.example | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 050cfc45..8d5bb5a9 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -32,8 +32,8 @@ var config = { ,redis: { host: '127.0.0.1', port: 6379, - idleTimeoutMillis: 1, - reapIntervalMillis: 1 + idleTimeoutMillis: 1, // idle time before dropping connection + reapIntervalMillis: 1 // time between cleanups } ,sqlapi: { protocol: 'http', diff --git a/config/environments/production.js.example b/config/environments/production.js.example index e7a76715..fb9ef4b3 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -25,7 +25,9 @@ var config = { } ,redis: { host: '127.0.0.1', - port: 6379 + port: 6379, + idleTimeoutMillis: 30000, // idle time before dropping connection + reapIntervalMillis: 1000 // time between cleanups } ,sqlapi: { protocol: 'https',