redis学习之常用指令

@

redis常用命令

查询redis是否启动:ps -ef | grep redis
如果需要启动,先到目录:usr/local/bin redis-server
config文件路径(例如:/myredis/redis.config)
redis-cli -p 端口号(默认6379) exit退出

指令

最全redis指令:http://redisdoc.com

key常用指令:

image-20210220113653742
image-20210220113805597

string常用指令

image-20210220115348225

image-20210220114208009

list常用指令

image-20210220204840147

image-20210220204924537

set常用指令

image-20210220211531747

image-20210220211619311

hash常用指令

image-20210220215415821

image-20210220220151412

zset有序集合常用指令

image-20210220222421697

image-20210220222446859
后期会弄成在线网页,方便查找,等我下一个帖子~
鸣谢:
本文基于尚硅谷redis文档修改制作,感谢阳哥大神的文档

一息若存,希望不灭
原文地址:https://www.cnblogs.com/yishuai/p/14423669.html