Using 'hincrby' with byte[] codec for values #2306
Unanswered
joanbalaguero
asked this question in
Q&A
Replies: 1 comment
-
I have no insights what |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a lettuce connection using 'StringAndByteArrayCodec()) which uses a string codec for keys and byte array codec for values. This is because we are storing compressed xml files. But since all fields must be byte[], we are also transforming long,int, ... to byte[].
It works well setting and getting a long value:
But I don't know how to apply an 'hincrby' to this field:
I get a "io.lettuce.core.RedisCommandExecutionException: ERR hash value is not an integer"
Is there any way to do this?
Beta Was this translation helpful? Give feedback.
All reactions