課程
/后端開發
/Java
/Redis入門
如果我往數據庫中插入數字?? 1, 插入的結果是:“1”還是 1? 當用incr 是把“1”轉成數字之后累加,還是直接去加?
2017-09-11
源自:Redis入門 6-3
正在回答
應該是String,Redis中沒有整形和float類型。Redis都會將其作為String來處理,Redis官方給出的回答“Redis doesnot have a dedicated integer type. The string stored at the key is interpreted as a base-10 64 bit signed integer to execute the operation. ”
舉報
本課程為Redis和Jedis使用的入門級教程,對Redis有初步了解
2 回答linsert插入問題
1 回答用jedis能查到新插入的數據,但是直接用虛擬機的查卻查不到?
1 回答redis中,存取字符串時,以二進制來操作的,怎么就存取就一致了呢?
3 回答a b c 和a c 1 2的差集為什么不是b 1 2而是b
2 回答到底那個是key值?是myhash,還是username?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-09-12
應該是String,Redis中沒有整形和float類型。Redis都會將其作為String來處理,Redis官方給出的回答“Redis doesnot have a dedicated integer type. The string stored at the key is interpreted as a base-10 64 bit signed integer to execute the operation. ”