计算机网络/计算机科学与应用/系统/运维/开发

Redis运维-字符串

一、字符串命令

GET 获取存储在给定键中的值

SET 设置存储在给定键中的值

DEL 删除存储在给定键中的值 (适合所用数据类型)


二、实际操作

127.0.0.1:6379> set hello world

OK

127.0.0.1:6379> get *

(nil)

127.0.0.1:6379> get hello

"world"

127.0.0.1:6379> 

127.0.0.1:6379> del hello

(integer) 1

127.0.0.1:6379> get hello

(nil)


业精于勤而荒于嬉,行成于思而毁于随

评论

^