Redis 并发加锁
并发加锁 如果不是redis 集群,可以用multi 如果是集群就不行了,因为访问的redis是随机的function lock($id,$expire){ $id = "lock_".$id; $now = time(); $expireTime = $now + $expire; $redis = Factory::getRedis(); $reul