resp.cr
forked from hugoabonizio/resp.crresp.cr
Lightweight RESP server and parser written in Crystal. It can be used to implement a Redisclone or a Redis load balancer, for exemple.
Installation
Add this to your application's shard.yml
:
dependencies:
resp:
github: Green-Edge/resp.cr
Usage
require "resp"
server = RESP::Server.new
server.listen do |conn|
# Returns the command followed by a list of arguments
operation, args = conn.parse
puts "operation: #{operation}, args: #{args}"
end
Contributing
- Fork it ( https://github.com/Green-Edge/resp.cr/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
Contributors
- hugoabonizio Hugo Abonizio - original creator
- Green-Edge Various Developers, including:
- OldhamMade Phillip Oldham
Repository
resp.cr
Owner
Statistic
- 0
- 0
- 0
- 1
- 1
- almost 4 years ago
- November 27, 2020
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 23:48:36 GMT
Languages