A Clojure library that implements redis as a duration atom.
Add the following line to your leinigen dependencies:
[redisatom "0.1.0-SNAPSHOT"]
=> (use 'redisatom.core)
=> (import 'redis.clients.jedis.Jedis)
=> (def ra (redis-atom (Jedis.)))
=> (def atom-for-a-key (ra "key"))
=> (def a (ra "key"))
=> @a
nil
=> (reset! a 0)
0
=> (swap! a inc)
1
Copyright © 2018 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close