数据库
首页 > 数据库> > Redis命令操作_常用命令和Redis持久化

Redis命令操作_常用命令和Redis持久化

作者:互联网

通用命令

127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379> set name zhangsan
OK
127.0.0.1:6379> keys *
1) "name"
127.0.0.1:6379> type user
none
127.0.0.1:6379> type name
string
127.0.0.1:6379> lpush my name
(integer) 1
127.0.0.1:6379> keys *
1) "my"
2) "name"
127.0.0.1:6379> del my
(integer) 1
127.0.0.1:6379> del name
(integer) 1
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379>

持久化:

标签:127.0,持久,name,0.1,redis,keys,Redis,6379,常用命令
来源: https://www.cnblogs.com/ailhy/p/16612577.html