常用的加锁方式有:(学习视频分享:redis视频教程)一、incr加锁<?php$redis=new Redis();$redis->connect(127.0.0.1);$redis->multi();$