Skip to content

Commit

Permalink
Update RedisTopicQueue.php (#46)
Browse files Browse the repository at this point in the history
处理不兼容php-redis5的问题(php-redis5已废弃lSize函数,当使用redis作为队列时,导致swoole:job无法启动)。php-redis废弃详情具体可查看:https://blog.csdn.net/xchenhao/article/details/97251618
  • Loading branch information
PeteLuo authored Feb 23, 2020
1 parent 7e0d3f0 commit f2c8e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/RedisTopicQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function len($topic): int
return 0;
}

return (int) $this->queue->lSize($topic) ?? 0;
return (int) $this->queue->lLen($topic) ?? 0;
}

public function purge($topic)
Expand Down

1 comment on commit f2c8e68

@weijer
Copy link

@weijer weijer commented on f2c8e68 Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

合了应该发布下新的版本!被这个坑了一把

Please sign in to comment.