redis模块学习目录
redis连接
各数据类型应用场景
图源于:https://www.cnblogs.com/pirlo21/p/7120935.html
string类型操作
-
https://blog.csdn.net/qq_32617703/article/details/103538867
setsetnxsetexpsetexgetmgetgetrangegetsetsetrangeappendstrlenincrdecrincrbydecrbyincrbyfloatsetbitgetbit
list类型操作
-
https://blog.csdn.net/qq_32617703/article/details/103539584
- 增
lpushlpushxrpushrpushx- 删
lpopblpoprpopbrpoprpoplpushbrpoplpushlremltrim- 改
lsetlinsert- 查
llenlindexlrange
hash类型操作
-
https://blog.csdn.net/qq_32617703/article/details/103540105
hsethsetnxhmsethgethmgethgetallhkeyshvalshscan_iterhlenhstrlenhincrbyhincrbyfloathdelhexists
set类型操作
-
https://blog.csdn.net/qq_32617703/article/details/103540364
- 增
sadd- 删
sremspopsrandmembersmove- 查
scardsmemberssismembersscan_iter-
集合运算
-
交集
sintersinterstore
-
差集
sdiffsdiffstore
-
并集
sunionsunionstore
-
交集
sorted set类型操作
-
https://blog.csdn.net/qq_32617703/article/details/103540718
- 增
zadd- 删
zremzremrangebyrankzremrangebyscore- 改
zincrby- 查
zrankzrevrankzscorezcountzrangezrevrangezrangebyscorezrevrangebyscorezcardzscan_iter
管道操作
发布订阅
其他操作
-
https://blog.csdn.net/qq_32617703/article/details/103541221
pingechodbsizekeysscan_itertimelastsavesavebgsaveshutdonwmoveflushallflushdbdumptyperenamerenamexdelexistsexpireexpireatpexpirepexpireatttlpttlpersistpfaddpfcountpfmergeconfig_getconfig_set