Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Clojure Redis client library
Clojure
Tag: 0.0.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/clj_redis
.gitignore
project.clj
readme.md

readme.md

clj-redis

Clojure Redis client library.

Usage

(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"

Notes

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.

Implemented commands:

  • set
  • get
  • del
  • exists
  • keys
  • lpush
  • llen
  • lpop
  • blpop
  • rpop
  • brpop

Installation

Depend on [clj-redis "0.0.6"] in your project.clj.

Something went wrong with that request. Please try again.