Skip to content

hugoabonizio/resp.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESP

Build Status Dependency Status devDependency Status

Lightweight RESP server and parser written in Crystal. It can be used to implement a Redis clone or a Redis load balancer, for exemple.

Installation

Add this to your application's shard.yml:

dependencies:
  resp:
    github: hugoabonizio/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 "op: #{operation}, args: #{args}"
end

Contributing

  1. Fork it ( https://github.com/hugoabonizio/resp/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Lightweight RESP (Redis protocol) server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published