改名
This commit is contained in:
@@ -87,7 +87,7 @@ class Redis extends Component
|
||||
* @return bool
|
||||
* @throws Exception
|
||||
*/
|
||||
public function lock($key, $timeout = 5)
|
||||
public function lock($key, $timeout = 5): bool
|
||||
{
|
||||
$script = <<<SCRIPT
|
||||
local _nx = redis.call('setnx',KEYS[1], ARGV[1])
|
||||
|
||||
@@ -53,7 +53,7 @@ class Redis extends Pool
|
||||
* @param mixed $config
|
||||
* @return SRedis
|
||||
* @throws RedisConnectException
|
||||
* @throws ComponentException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function createClient(string $name, mixed $config): SRedis
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user