Skip to content

Clojure bindings to the Riak Protocol Buffers API.

Notifications You must be signed in to change notification settings

ShawnCarnell/clj-riak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-riak

Clojure bindings to the Riak Protocol Buffers API.

Differences in this fork

  • Dependency updated to Clojure 1.3.0.
  • Dependency updated to the official Basho client com.basho.riak/riak-client "1.0.2-SNAPSHOT"

I forked from org.clojars.ossareh/clj-riak "0.1.0-SNAPSHOT" which included support for links like so:

;; an example put fn
(defn put [bucket key data]
  (let [links (or (:links (meta data)) '())
        data {:value (.getBytes (json/json-str data))
              :content-type "application/json"
              :links links}]

    (riak/put riak-client
              bucket
              key
              data)))
    
(put "test-bucket" "test-key"
     (with-meta {:a 1} {:links '({:bucket "foo"
                                  :key "bar"
                                  :tag "foobar"})}))

Installation

clj-riak is available as a Maven artifact from Clojars:

:dependencies
  [[org.clojars.shawncarnell/clj-riak "0.1.0-SNAPSHOT"] ...]

Usage

For an introduction to the library, see the blog post Exploring Riak with Clojure

License

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

About

Clojure bindings to the Riak Protocol Buffers API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%