Sha256: ca2e3ad1df3c4dec4db4a8e0ad70535b24095dae17c18665a9f314e496cbc83a

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

Redic
=====

Lightweight Redis Client

Description
-----------

Wrapper for `Redis::Client` that avoids rubyisms. It is inspired
by [redigo](https://github.com/garyburd/redigo), a Redis client
library for golang.

## Usage

```ruby
# Accepts the same options as Redis.new
redis = Redic.new

# Processes the command and returns the response.
c.call("SET", "foo", "bar")

assert_equal "bar", c.call("GET", "foo")

# Pipelining is implemented by buffering commands,
# then calling Redic#run
c.write("SET", "foo", "bar")
c.write("GET", "foo")

assert_equal ["OK", "bar"], c.run
```

## Installation

You can install it using rubygems.

```
$ gem install redic
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redic-0.0.2 README.md