改名
This commit is contained in:
@@ -29,7 +29,9 @@ class Producer extends Component
|
|||||||
|
|
||||||
$name = $crontab->getName();
|
$name = $crontab->getName();
|
||||||
|
|
||||||
if ($redis->type(self::CRONTAB_KEY) !== \Redis::REDIS_ZSET) {
|
if (
|
||||||
|
$redis->exists(self::CRONTAB_KEY) &&
|
||||||
|
$redis->type(self::CRONTAB_KEY) !== \Redis::REDIS_ZSET) {
|
||||||
throw new Exception('Cache key ' . self::CRONTAB_KEY . ' types error.');
|
throw new Exception('Cache key ' . self::CRONTAB_KEY . ' types error.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user