An open API service indexing awesome lists of open source software.

https://github.com/mmcgrana/clj-redis

Clojure Redis client library
https://github.com/mmcgrana/clj-redis

Last synced: about 1 year ago
JSON representation

Clojure Redis client library

Awesome Lists containing this project

README

          

# clj-redis

Clojure [Redis](http://redis.io) 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.

## Installation

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

## License

Copyright © 2010-2011 Mark McGranaghan

Distributed under the MIT/X11 license; see the file COPYING.