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