Skip to content

Commit

Permalink
#98 新增支持 Redis 哨兵模式、集群模式 cache、lock、queue、rate-limit 改造兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jul 23, 2021
1 parent 508197b commit 557bde2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WorkerLimiterLock.php
Expand Up @@ -20,7 +20,7 @@ public static function lock($name, $max, $timeout, $poolName = null)
{
$now = microtime(true);
$args = [
$name, // 名称
'{' . $name . '}', // 名称
$max, // 最大允许数量
$now, // 当前时间
null === $timeout ? null : ($now + $timeout), // 过期时间
Expand Down Expand Up @@ -85,7 +85,7 @@ public static function lock($name, $max, $timeout, $poolName = null)
public static function unlock($name, $workerId, $poolName = null)
{
$args = [
$name, // 名称
'{' . $name . '}', // 名称
$workerId, // 任务ID
];
$numKeys = 1;
Expand Down

0 comments on commit 557bde2

Please sign in to comment.