resp-crystal

Lightweight RESP client

Resp

Lightweight RESP client that can be used for interacting with Redis and Disque servers.

CI

Usage

require "resp"

client = Resp.new("redis://localhost:6379")

client.call("SET", "foo", "42")
client.call("GET", "foo") #=> "42"

Pipelining

You can pipeline commands by using the queue/commit methods.

require "resp"

client = Resp.new("redis://localhost:6379")

client.queue("ECHO", "foo")
client.queue("ECHO", "bar")

client.commit #=> ["foo", "bar"]

Installation

Add this to your application's shard.yml:

dependencies:
  resp:
    github: soveran/resp-crystal
    branch: master
Repository

resp-crystal

Owner
Statistic
  • 15
  • 5
  • 0
  • 6
  • 1
  • almost 3 years ago
  • April 15, 2016
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 13:34:10 GMT

Languages