Clojure Redis client library.
(require '[clj-redis.client :as redis])
(def db (redis/init))
(redis/ping db)
=> "PONG"
(redis/set db "foo" "BAR")
=> "OK"
(redis/get db "foo")
=> "BAR"
The connections represented by the return value of clj-redis.client/init
are threadsafe; they are backed by a dynamic pool of connections to the Redis server.
Depend on [clj-redis "0.0.12"]
in your project.clj
.
Copyright © 2010-2011 Mark McGranaghan
Distributed under the MIT/X11 license; see the file COPYING.