Skip to content

wacko/redic-dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redic-dsl

DSL wrapper for Redic

Description

Add some DSL around redic, a lightweight Redis client.

Installation

$ gem install redic-dsl

Usage

require "redic/dsl"

redis = Redic::Dsl.new("redis://localhost:6379")

redis.set "foo", "bar"
# => "OK"
redis.get "foo"
# => "bar"

redis.pipelined do |r|
  r.set "baz", 1
  r.incr "baz"
  r.get "baz"
end
# => ["OK", 2, "2"]

About

✨ DSL wrapper for Redic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages