src/Cache/RedisCache.php 1 location
|
@@ 46-51 (lines=6) @@
|
43 |
|
throw new \RuntimeException('can not connect to the redis server'); |
44 |
|
} |
45 |
|
|
46 |
|
if ($database != 0) { |
47 |
|
$select_result = $this->redis->select($database); |
48 |
|
if (!$select_result) { |
49 |
|
throw new \RuntimeException('can not select the database'); |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
|
if (empty($prefix)) { |
54 |
|
throw new \InvalidArgumentException('prefix can not be empty'); |
src/Queue/RedisQueue.php 1 location
|
@@ 49-54 (lines=6) @@
|
46 |
|
throw new \RuntimeException('can not connect to the redis server'); |
47 |
|
} |
48 |
|
|
49 |
|
if ($database != 0) { |
50 |
|
$select_result = $this->redis->select($database); |
51 |
|
if (!$select_result) { |
52 |
|
throw new \RuntimeException('can not select the database'); |
53 |
|
} |
54 |
|
} |
55 |
|
|
56 |
|
if (empty($channel)) { |
57 |
|
throw new \InvalidArgumentException('channel can not be empty'); |