Java – does redis only allow string representation but not numeric values
•
Java
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
二维码