From e3d0f0ec8f5e6363bbfe8d407b9c9ba34636defd Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 17 Oct 2014 14:18:14 +0200 Subject: [PATCH] Adds default value for redis returnToHead configuration --- config/environments/development.js.example | 1 + config/environments/production.js.example | 1 + config/environments/staging.js.example | 1 + config/environments/test.js.example | 1 + 4 files changed, 4 insertions(+) diff --git a/config/environments/development.js.example b/config/environments/development.js.example index d36a6ba7..22a66806 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -104,6 +104,7 @@ var config = { // by 2 to know how many possible connections will be // kept open by the server. The default is 50. max: 50, + returnToHead: true, // defines the behaviour of the pool: false => queue, true => stack idleTimeoutMillis: 1, // idle time before dropping connection reapIntervalMillis: 1, // time between cleanups slowQueries: { diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 7449144d..2a47ea5b 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -98,6 +98,7 @@ var config = { // by 2 to know how many possible connections will be // kept open by the server. The default is 50. max: 50, + returnToHead: true, // defines the behaviour of the pool: false => queue, true => stack idleTimeoutMillis: 30000, // idle time before dropping connection reapIntervalMillis: 1000, // time between cleanups slowQueries: { diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 920388d4..446d5c2f 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -98,6 +98,7 @@ var config = { // by 2 to know how many possible connections will be // kept open by the server. The default is 50. max: 50, + returnToHead: true, // defines the behaviour of the pool: false => queue, true => stack idleTimeoutMillis: 30000, // idle time before dropping connection reapIntervalMillis: 1000, // time between cleanups slowQueries: { diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 68b8f323..9fa7aca8 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -98,6 +98,7 @@ var config = { // by 2 to know how many possible connections will be // kept open by the server. The default is 50. max: 50, + returnToHead: true, // defines the behaviour of the pool: false => queue, true => stack idleTimeoutMillis: 1, // idle time before dropping connection reapIntervalMillis: 1, // time between cleanups slowQueries: {