redis再次入门之重新出发

redis能传任意格式的文件吗?看大佬咋说:一句话难道老司机

 

别喷,先看问题,问了下同事,说,hash,hashmap啥的,不知道能不能实现?后续再说,先学下基本的技能

 

感谢提供帮助和有益参考的大佬!

 

For Video Recommendation in Deep learning QQ Group 277356808
For Visual in deep learning QQ Group 629530787
I'm here waiting for you

wanna have a date with someone in Beijing please join in the QQ Group 737813700
 

 

 

 

 

1-redis存储string

 set name "xmg" ex 10
OK
get name
"xmg"
。。。
get name
(nil)
#不存在
exists name
(integer) 0

ex是存在的时间,单位为秒

然后就发现取值的时候不存在

是否存在也有检查的方法,exists key

可以发现什么格式都是string,如下

set name [1,2,3]
OK
get name
"[1,2,3]"
set name {123,12}
OK
get name
"{12
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章