You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know the err says redis: can't marshal *main.Post (implement encoding.BinaryMarshaler) so I should implement encoding.BinaryMarshaler for Post struct but I believe it's good if go-redis also supports the AddFlat feature even though it can be a bit more complex than current one as well as redigo.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When we have the followings
redigo supports converting
redis
tag fields of a struct to binary like below.This above works.
The code below is go-redis case.
I know the
err
saysredis: can't marshal *main.Post (implement encoding.BinaryMarshaler)
so I should implement encoding.BinaryMarshaler forPost
struct but I believe it's good if go-redis also supports the AddFlat feature even though it can be a bit more complex than current one as well as redigo.Beta Was this translation helpful? Give feedback.
All reactions