title: Cannot increment RedisAtomicLong
body: <p>I am trying to increment a <code>RedisAtomicLong</code> object by a given delta:</p>
  
  <pre><code>private void updateBandwidthUsage(String remoteAddr, int length) {
      RedisAtomicLong counter = new RedisAtomicLong("someKey", redisTemplate)
      counter.getAndAdd(length);
      counter.expire(1, TimeUnit.DAYS);
  }
  </code></pre>
  
  <p>This fails with</p>
  
  <pre><code>redis.clients.jedis.exceptions.JedisDataException: ERR value is not an integer or out of range
  </code></pre>
  
  <p>When I use the <code>MONITOR</code> command on the server, this is what I can see:</p>
  
  <pre><code>1403019417.097887 [0 10.0.2.2:46694] "INCRBY" "\xac\xed\x00\x05t\x00\x150:0:0:0:0:0:0:1:16238" "7625"
  </code></pre>
  
  <p>I am using Spring Data Redis (1.3.0) with the Jedis (2.5.1) connector, the server is running Redis 2.8.6.</p>
  
  <hr>
  
  <p>edit: I just noticed something weird: When I manually use <code>set</code> on the counter the data that is sent to Redis looks pretty weird:</p>
  
  <pre><code>1403020463.368050 [0 10.0.2.2:47127] "SET" "\xac\xed\x00\x05t\x00\x150:0:0:0:0:0:0:1:16238" "\xac\xed\x00\x05sr\x00\x11java.lang.Integer\x12\xe2\xa0\xa4\xf7\x81\x878\x02\x00\x01I\x00\x05valuexr\x00\x10java.lang.Number\x86\xac\x95\x1d\x0b\x94\xe0\x8b\x02\x00\x00xp\x00\x00\x00\x00"
  </code></pre>