redis127.0.0.1:6379>CLIENT LIST addr=127.0.0.1:43143fd=6age=183idle=0flags=N db=0sub=0psub=0multi=-1qbuf=0qbuf-free=32768obl=0oll=0omem=0events=r cmd=client addr=127.0.0.1:43163fd=5age=35idle=15flags=N db=0sub=0psub=0multi=-1qbuf=0qbuf-free=0obl=0oll=0omem=0events=r cmd...
event:文件描述符事件(r/w):r和w分别代表客户端套接字可读和可写 cmd:当前客户端最后一次执行的命令,不包含参数
首先CLIENT LIST 可以用来查看 缓冲区的情况,是否溢出。 CLIENT LIST id=5 addr=127.0.0.1:50487 fd=9 name= age=4 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=26 qbuf-free=32742 obl=0 oll=0 omem=0 events=r cmd=client 需要关注的参数 cmd,表示客户端最新执行的命令。这个例子中执行的...
redis> CLIENT LIST addr=127.0.0.1:43143 fd=6 age=183 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client addr=127.0.0.1:43163 fd=5 age=35 idle=15 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll...
redis127.0.0.1:6379>CLIENT LIST addr=127.0.0.1:43143fd=6age=183idle=0flags=N db=0sub=0psub=0multi=-1qbuf=0qbuf-free=32768obl=0oll=0omem=0events=r cmd=client addr=127.0.0.1:43163fd=5age=35idle=15flags=N db=0sub=0psub=0multi=-1qbuf=0qbuf-free=0obl=0oll=0omem=0events=r cmd...
WIN+R输入cmd 进入控制台 进入Redis解压目录下 打开服务端: redis-server.exe redis.windows.conf 客户端连接服务端: redis-cli.exe -h localhost -p 6379 提示需要输入密码: 输入: auth xxxxx 密码验证成功! 查询所有缓存: keys * 4. 常用命令
# 设置客户端名127.0.0.1:6379>CLIENTSETNAMEgjcOK#查看客户端名127.0.0.1:6379>CLIENTGETNAME"gjc"# 查看客户端连接信息127.0.0.1:6379>client list id=7addr=127.0.0.1:50194fd=7name=testuser age=2338idle=2301flags=Ndb=0sub=0psub=0multi=-1qbuf=0qbuf-free=0obl=0oll=0omem=0events=r cmd=client...
通过client list 命令查看客户端的信息 代码语言:javascript 复制 127.0.0.1:6379>client list id=4addr=127.0.0.1:35282laddr=127.0.0.1:6379fd=9name=age=17618idle=17609flags=Ndb=0sub=0psub=0multi=-1qbuf=0qbuf-free=0argv-mem=0obl=0oll=0omem=0tot-mem=20504events=r cmd=keys user=defaultredir=...
client setname second OK 1. 2. 使用client 展现 client list id=3 addr=127.0.0.1:38502 fd=6 name=second age=136 idle=59 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=client id=4 addr=127.0.0.1:38504 fd=7 name= age=22 idle=0 fla...
#查看客户端名127.0.0.1:6379>CLIENT GETNAME"gjc"# 查看客户端连接信息127.0.0.1:6379>client list id=7addr=127.0.0.1:50194fd=7name=testuser age=2338idle=2301flags=Ndb=0sub=0psub=0multi=-1qbuf=0qbuf-free=0obl=0oll=0omem=0events=r cmd=client ...