I’m stuck on Stage #qq0
I am implementing this in Golang
I implemented a simple redis protocol parser as stated in the task that it will come handy in future, but do I have to add code for Serialization as well.
I am not correctly understanding the task requirement.
Here is my protocol parser implementation :Code
Kindly help me with the same.
For this stage, you need to take what you are receiving from Echo, and then return it as a bulk string to the connection that is asking you for this.
For example:
$ redis-cli ECHO hey
Here the command is ECHO, which your parser should identify, and the parameter is hey
which again your parser should identified.
Then, just simple return this hey
as a bulk string return "$3\r\nhey\r\n"
2 Likes