linux进入redis
redis-cli -p 6379
查询
config get requirepass
# 对不存在的键进行设置
redis 0.0.1:6379> SET key “value”
OK
redis 0.0.1:6379> GET key
“value”
# 对已存在的键进行设置
redis 0.0.1:6379> SET key “new-value”
OK
redis 0.0.1:6379> GET key
“new-value”
linux进入redis redis-cli -p 6379 查询 config get requirepass # 对…
linux进入redis
redis-cli -p 6379
查询
config get requirepass
# 对不存在的键进行设置
redis 0.0.1:6379> SET key “value”
OK
redis 0.0.1:6379> GET key
“value”
# 对已存在的键进行设置
redis 0.0.1:6379> SET key “new-value”
OK
redis 0.0.1:6379> GET key
“new-value”