diff --git a/System/Cache/Redis.php b/System/Cache/Redis.php index 16490970..fe13b305 100644 --- a/System/Cache/Redis.php +++ b/System/Cache/Redis.php @@ -48,10 +48,8 @@ class Redis extends Component /** - * @throws ComponentException * @throws ConfigException - * @throws ReflectionException - * @throws NotFindClassException + * @throws Exception */ public function createPool() { @@ -86,10 +84,10 @@ class Redis extends Component /** * @param $key * @param int $timeout - * @return bool + * @return bool|int * @throws Exception */ - public function lock($key, $timeout = 5): bool + public function lock($key, $timeout = 5): bool|int { $script = <<