$lockKey='withdraw_lock_'.$this->uid; $getLock = $this->cache_redis->set($lockKey, $this->uid, ['NX', 'EX'=>3]); if(!$getLock){ return; }
php redis加锁
最新推荐文章于 2023-07-07 18:15:02 发布
$lockKey='withdraw_lock_'.$this->uid; $getLock = $this->cache_redis->set($lockKey, $this->uid, ['NX', 'EX'=>3]); if(!$getLock){ return; }