-
Hi there-- is there a way to store arbitrarily encoded byte arrays with Get/Set? Or do I need to manage the encoding/decoding on my end? |
Beta Was this translation helpful? Give feedback.
Answered by
rueian
Feb 22, 2023
Replies: 1 comment 5 replies
-
Redis string is binary safe. So yes, you can store arbitrary Go byte slice as Go string without special encoding. And |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
cinderrrr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Redis string is binary safe. So yes, you can store arbitrary Go byte slice as Go string without special encoding.
And
rueidis.BinaryString()
can help you do the conversion without memory copy.