xetorthio/jedis — pull request #529 by UglyTroLL (2014-02-05 22:11:57+00:00)
Title: Another getrange function which returns byte[] instead of String

When use 'getrange' for bytes processing, an intermediate String is unnecessary and it could easily mess things up.
E.g. 'R\xf2\xact\x01\x00\x00\x00\x00' is the raw value we stored in Redis, in current version of Jedis, we must first get a String representation of these bytes, and then call s.getBytes() to get the byte[]. More importantly, the string charset stuff could easily mess things up (means the result from s.getBytes() could be different from what we really have in Redis)