That sounds like a bug in your code, or how you are using whatever library you are using.
Redis is binary safe throughout, for both keys and values. However, some client libraries might not be, so if you are using binary (from the "byte array" mention in the subject), then it might fail. If that is the case, fixes might include:
- use a different library, one that is binary safe
- use a different serializer (text based, json for example)
- base-64 encode the data that you send
Personally, I prefer the first option. It is also possible that the error is in the code you are using to serialize / deserialize etc. You might want to show some of that code, or at least give an indication of the flavor of the code, and the libraries (both redis client and serialization) that you are using.
Marc