From cc702603a2ae83fa40d074415412ba296a084cd5 Mon Sep 17 00:00:00 2001 From: Matt Walker Date: Mon, 9 Jun 2014 01:13:28 +0000 Subject: [PATCH 1/3] Added server auth example to Application.cfc --- examples/Application.cfc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/Application.cfc b/examples/Application.cfc index e0ee864..8e7845c 100644 --- a/examples/Application.cfc +++ b/examples/Application.cfc @@ -9,6 +9,10 @@ local.redisHost = "localhost"; // redis server hostname or ip address local.redisPort = 6379; // redis server ip address + local.redisTimeout = 2000; // redis connection timeout + + // If your server requires a password, uncomment the following line and set it. + // local.redisPassword = "foobared"; // redis server password // Set connection pool configuration // http://www.ostools.net/uploads/apidocs/jedis-2.1.0/redis/clients/jedis/JedisPoolConfig.html @@ -24,7 +28,11 @@ local.jedisPoolConfig.maxWait = 3000; local.jedisPool = CreateObject("java", "redis.clients.jedis.JedisPool"); - local.jedisPool.init(local.jedisPoolConfig, local.redisHost, local.redisPort); + if (StructKeyExists(local, "redisPassword")) { + local.jedisPool.init(local.jedisPoolConfig, local.redisHost, local.redisPort, local.redisTimeout, local.redisPassword); + } else { + local.jedisPool.init(local.jedisPoolConfig, local.redisHost, local.redisPort); + } local.redis = CreateObject("component", "cfc.cfredis").init(); local.redis.connectionPool = local.jedisPool; From 4cede86768060c6a13542fe14a0fa9f541bc8eb5 Mon Sep 17 00:00:00 2001 From: Matt Walker Date: Mon, 9 Jun 2014 01:15:17 +0000 Subject: [PATCH 2/3] Added comment advising to set server password in JedisPool instantiation rather than using AUTH command --- src/cfc/cfredis.cfc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfc/cfredis.cfc b/src/cfc/cfredis.cfc index eff5c02..83b7d0d 100644 --- a/src/cfc/cfredis.cfc +++ b/src/cfc/cfredis.cfc @@ -120,6 +120,7 @@ Thanks! + From 11bd6928a63dbf6b711e9e62e9c78e4af847b8e1 Mon Sep 17 00:00:00 2001 From: ajays28 <37344581+ajays28@users.noreply.github.com> Date: Thu, 20 Dec 2018 13:34:27 -0500 Subject: [PATCH 3/3] Fix `lpush` function to accept multiple values (#6) Fixed "lpush" function - cfredis.cfc --- src/cfc/cfredis.cfc | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/src/cfc/cfredis.cfc b/src/cfc/cfredis.cfc index 83b7d0d..c50dcad 100644 --- a/src/cfc/cfredis.cfc +++ b/src/cfc/cfredis.cfc @@ -1033,18 +1033,39 @@ Thanks! - - - + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -1054,7 +1075,6 @@ Thanks! -