Server
-
bgRewriteAOF – Asynchronously rewrite the append-only file
-
bgSave – Asynchronously save the dataset to disk (in background)
-
config – Get or Set the Redis server configuration parameters
-
dbSize – Return the number of keys in selected database
-
flushAll – Remove all keys from all databases
-
flushDb – Remove all keys from the current database
-
info – Get information and statistics about the server
-
lastSave – Get the timestamp of the last disk save
-
save – Synchronously save the dataset to disk (wait to complete)
-
slaveOf – Make the server a slave of another instance, or promote it to master
-
time – Return the current server time
-
slowLog – Access the Redis slowLog entries
也没什么好说的,因为在windows有的功能不能用,也没有关知识
个人觉得 一下几条可能有用
flushAll 删除所有flushDb 删除单个数据库
bgsave 保存到硬盘 slowLog查看纪录处理慢的数据
salveOf 当主库的从库(还没玩过) bgRewriteAOF 纪录每条数据(玩不出来,不能及时更新,觉得bgsave就够了)
info 查看服务器信息(windows下和网上查出来的结果不一样)
大家去那里学吧,不打算接着写了。
http://www.runoob.com/redis/redis-tutorial.html
转载于:https://my.oschina.net/toknttoknTtok/blog/536707
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/109230.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...