Skip to content

Commit 9dd6f1b

Browse files
committed
Pass a Redis instance or an array with host, port and options
1 parent 3c65ee8 commit 9dd6f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuanF/Lib/Persistence/Redis.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Redis extends Persistence
3434
*/
3535
public static function init($params)
3636
{
37-
if ($params instanceof Redis) {
37+
if ($params instanceof \Redis) {
3838
self::$redisInstance = $params;
3939
} elseif (is_array($params)) {
4040
self::$host = isset($params['host']) ? $params['host'] : self::$host;

0 commit comments

Comments
 (0)