Releases: hanchiang/codecrafters-redis-rust
Releases · hanchiang/codecrafters-redis-rust
Do not write response when connection is closed
Do not write response when connection is closed.
Rename ConnectionError to ConnectionClosed.
What's Changed
- Rename ConnectionError to ConnectionClosed. Do not write response if … by @hanchiang in #5
Full Changelog: 0.4.0...0.4.1
Add examples, update readme
Added examples to run commands in the readme.
What's Changed
- Add sample commands, update readme. by @hanchiang in #4
Full Changelog: 0.3.0...0.4.0
Integrate new parser which parses redis protocol
Features
Move reading of stream up from client_input.read_input() to handle_connection_helper().
In handle_connection(), wait for more input if input is incomplete send error response and break out of the loop.
In ParsedCommand, remove num_args_in_input, change args from Option<Vec to Vec.
Added an AppError to handle all the errors that may result from the program.
What's Changed
- Feature/integrate new parser by @hanchiang in #3
Full Changelog: 0.2.0...0.3.0
Implement RESP parser
Features
- Implement RESP parser. Not integrated with the main program.
What's Changed
- Feature/parser improvement by @hanchiang in #2
Full Changelog: 0.0.1...0.2.0
First release
Features
- Supported commands: PING, ECHO, GET, SET, SET with expiry
- 1 thread per connection
- Parse RESP buffer by transforming it into a string, parsing it into a vector to collect the command and arguments
To do
- Improve the parsing of RESP input.
- Better separation of concern: Move respond() out of ClientInput
- Replace threads with event loop