Commit d3c1c3d0 authored by shishir suman's avatar shishir suman
Browse files

Merge remote-tracking branch 'origin/Gcloud_fix' into Gcloud_fix

Showing with 4 additions and 0 deletions
+4 -0
...@@ -149,9 +149,13 @@ object RedisCache extends RedisConnector { ...@@ -149,9 +149,13 @@ object RedisCache extends RedisConnector {
def getList(key: String, handler: (String) => List[String] = defaultListHandler, ttl: Int = 0): List[String] = { def getList(key: String, handler: (String) => List[String] = defaultListHandler, ttl: Int = 0): List[String] = {
val jedis = getConnection val jedis = getConnection
try { try {
logger.info("Before " +key)
var data = jedis.smembers(key).asScala.toList var data = jedis.smembers(key).asScala.toList
logger.info("after " +data)
if (null != handler && (null == data || data.isEmpty)) { if (null != handler && (null == data || data.isEmpty)) {
logger.info("Before " +handler)
data = handler(key) data = handler(key)
logger.info("After " +data)
if (null != data && !data.isEmpty) if (null != data && !data.isEmpty)
saveList(key, data, ttl, false) saveList(key, data, ttl, false)
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment