I'm putting together a PoC to see if Spring Data Redis is an appropriate solution for a certain problem. Thus far I've got A Jedis connection factory configured and can inject a working RedisTemplate where I want it.
The problem is that I'm using a RedisTemplate<String, Long>. If I do the call:
When I look up what's actually been put into Redis, the key has become:
and the value has become:
In the case of the key, that's a bit annoying. In the case of the value, that is not a sane way of storing a Long. Is there a better way of doing the serialization?