@@ 38-47 (lines=10) @@ | ||
35 | return $this->persistentConnect($redisConfig); |
|
36 | } |
|
37 | ||
38 | private function connect( array $redisConfig){ |
|
39 | $this->handler->connect( |
|
40 | $redisConfig['host'], |
|
41 | $redisConfig['port'], |
|
42 | $redisConfig['timeout'], |
|
43 | null, |
|
44 | $redisConfig['reconnectAttempt'] |
|
45 | ); |
|
46 | $this->handler->select($redisConfig['dbIndex']); |
|
47 | } |
|
48 | ||
49 | private function persistentConnect( array $redisConfig){ |
|
50 | $this->handler->pconnect( |
|
@@ 49-58 (lines=10) @@ | ||
46 | $this->handler->select($redisConfig['dbIndex']); |
|
47 | } |
|
48 | ||
49 | private function persistentConnect( array $redisConfig){ |
|
50 | $this->handler->pconnect( |
|
51 | $redisConfig['host'], |
|
52 | $redisConfig['port'], |
|
53 | $redisConfig['timeout'], |
|
54 | $redisConfig['persistentId'] |
|
55 | ); |
|
56 | $this->handler->select($redisConfig['dbIndex']); |
|
57 | ||
58 | } |
|
59 | ||
60 | /** |
|
61 | * Fetch a value from the cache. |