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