|
|
@@ -66,7 +66,7 @@ class AuthHook
|
|
|
*/
|
|
|
public function getOnlineCount(UserTypeEnum $userType): int
|
|
|
{
|
|
|
- $pattern = $this->cache->getCacheKey(self::TOKEN_INFO . $userType->value . ':*:');
|
|
|
+ $pattern = $this->cache->getCacheKey(self::TOKEN_INFO . $userType->value . ':*:*');
|
|
|
$keys = $this->cache->handler()->keys($pattern);
|
|
|
return count($keys);
|
|
|
}
|