Permalink
Browse files

Move Redis setOption function calls to after the connection to Redis is

made.
  • Loading branch information...
1 parent 9d34a33 commit d4970e7ccdd5661145a9ddfba797def59a3e1c2b @Tomdarkness committed Jun 2, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 library/Zend/Cache/Storage/Adapter/RedisResourceManager.php
@@ -66,13 +66,13 @@ public function getResource($id)
$redis = new RedisResource();
+ $resource['resource'] = $redis;
+ $this->connect($resource);
+
foreach ($resource['lib_options'] as $k => $v) {
$redis->setOption($k, $v);
}
- $resource['resource'] = $redis;
- $this->connect($resource);
-
$info = $redis->info();
$resource['version'] = $info['redis_version'];
$this->resources[$id]['resource'] = $redis;

0 comments on commit d4970e7

Please sign in to comment.