Announcement Announcement Module
Collapse
No announcement yet.
Keys padded with hex Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Keys padded with hex

    Hi guys,

    I'm using Spring Data Redis 1.0.0.M1 and Data Commons* 1.0.0.M2

    When I INCR a key, or SET a key, I see the following in the Redis-cli monitor, for e.g. a key called "nice:clean:key" :

    +1297099473.356872 "INCR" "\xac\xed\x00\x05t\x00\x0enice:clean:key"

    Please let me know how I can get rid of the "\xac\xed\x00\x05t\x00\x0" padding.

    Thanks

  • #2
    Fixed

    Fixed.

    Code:
    template.setKeySerializer(new StringRedisSerializer());
    The default JdkSerializationRedisSerializer padded my keys, and uses the default Java serialization algorithm, hence the "ac ed 00 05" stuff:

    http://www.javaworld.com/community/node/2915
    Last edited by opyate; Feb 7th, 2011, 01:02 PM.

    Comment

    Working...
    X