tidwall / redcon

Redis compatible server framework for Go
MIT License
2.19k stars 158 forks source link

How to direct transfer of returned {}interface type from redis server. #31

Closed gitmko0 closed 4 years ago

gitmko0 commented 4 years ago

[A. redis cli] <-> [B. custom redis client redcon] <-> [C. custom redis server redcon] <-> [D. redis server]

When C. received reply interface, i would like this "reply" to be forwarded directly to B. instead of doing an expensive interface{} to []byte conversion then only unserialize []byte to interface{} back on B. How do i get it done?

i realised i'm trying to transfer redigo interface type to another connecting redigo instance. how to transfer interface type directly?

the custom made redis server and custom made redis client (both written in golang) is a bridge to the redis server and redis client. B. does sanitization of data from A. redis-cli and forward to C. which validates the results before returning the data "reply" back without any processing from D to C and then to B but is post processed at B then back to A. The C to B part would like the "reply" to be "unprocessed". How to get it done?

gitmko0 commented 4 years ago

I think is WriteAny correct? I'm implementing it now. Checking