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
- Host: GitHub
- URL: https://github.com/mmcgrana/clj-redis
- Owner: mmcgrana
- License: mit
- Created: 2010-12-27T00:46:59.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-12-13T09:13:03.000Z (over 14 years ago)
- Last Synced: 2025-03-31T08:01:46.433Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 259 KB
- Stars: 79
- Watchers: 1
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome - mmcgrana/clj-redis - Clojure Redis client library (<a name="Clojure"></a>Clojure)
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.