課程
/后端開發(fā)
/Java
/Redis入門
如果我往數(shù)據(jù)庫中插入數(shù)字?? 1, 插入的結(jié)果是:“1”還是 1? 當(dāng)用incr 是把“1”轉(zhuǎn)成數(shù)字之后累加,還是直接去加?
2017-09-11
源自:Redis入門 6-3
正在回答
應(yīng)該是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能查到新插入的數(shù)據(jù),但是直接用虛擬機的查卻查不到?
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 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-09-12
應(yīng)該是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. ”