Java – does redis only allow string representation but not numeric values

The answer to my research here is complex

>Can anyone verify that the redis server can only store the representation of any value? > For example, if I use a java client (jedis) with double type in lpush, do I need to convert it to an equivalent string type before sending it to redis? > Or is there a way to send actual digital types, such as double? If so, is there any sample code on how to do this?

thank you

Solution

Redis stores all contents in string or string representation

And, said jedis Look at the source, I don't think it supports anything other than strings

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>