如果我往数据库中插入数字 1, 插入的结果是:“1”还是 1? 当用incr 是把“1”转成数字之后累加,还是直接去加?
应该是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. ”