This commit is contained in:
2023-12-12 15:35:38 +08:00
parent 827fb257ab
commit 84c253a9f6
17 changed files with 271 additions and 302 deletions
+7 -7
View File
@@ -58,7 +58,7 @@ class Redis
/**
* @return void
* @throws Exception
* @throws
*/
public function init(): void
{
@@ -85,7 +85,7 @@ class Redis
* @param $key
* @param int $timeout
* @return bool
* @throws RedisException
* @throws
*/
public function waite($key, int $timeout = 5): bool
{
@@ -105,7 +105,7 @@ class Redis
* @param $key
* @param int $timeout
* @return bool|int
* @throws Exception
* @throws
*/
public function lock($key, int $timeout = 5): bool|int
{
@@ -124,7 +124,7 @@ SCRIPT;
/**
* @param $key
* @return int
* @throws Exception
* @throws
*/
public function unlock($key): int
{
@@ -165,7 +165,7 @@ SCRIPT;
/**
* @return \Redis
* @throws Exception
* @throws
*/
private function getClient(): \Redis
{
@@ -175,7 +175,7 @@ SCRIPT;
/**
* @return Pool
* @throws Exception
* @throws
*/
protected function pool(): Pool
{
@@ -189,7 +189,7 @@ SCRIPT;
/**
* @return \Redis
* @throws RedisConnectException|RedisException
* @throws
*/
protected function connect(): \Redis
{