redis学习#随便瞎玩的收获2 -server

redis学习#随便瞎玩的收获2 -server

Server

  1. bgRewriteAOF – Asynchronously rewrite the append-only file

  2. bgSave – Asynchronously save the dataset to disk (in background)

  3. config – Get or Set the Redis server configuration parameters

  4. dbSize – Return the number of keys in selected database

  5. flushAll – Remove all keys from all databases

  6. flushDb – Remove all keys from the current database

  7. info – Get information and statistics about the server

  8. lastSave – Get the timestamp of the last disk save

  9. resetStat – Reset the stats returned by info method.

  10. save – Synchronously save the dataset to disk (wait to complete)

  11. slaveOf – Make the server a slave of another instance, or promote it to master

  12. time – Return the current server time

  13. 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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109230.html原文链接:https://javaforall.net

(0)
上一篇 2021年9月11日 上午8:00
下一篇 2021年9月11日 上午8:00


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号