Lightweight RESP server and parser written in Crystal. It can be used to implement a Redis clone or a Redis load balancer, for exemple.
Add this to your application's shard.yml
:
dependencies:
resp:
github: hugoabonizio/resp.cr
require "resp"
server = RESP::Server.new
server.listen do |conn|
# Returns the command followed by a list of arguments
operation, args = conn.parse
puts "op: #{operation}, args: #{args}"
end
- Fork it ( https://github.com/hugoabonizio/resp/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- hugoabonizio Hugo Abonizio - creator, maintainer