Skip to content

replikativ/konserve-welle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konserve-welle

A Riak backend for konserve implemented with welle.

Usage

Add to your leiningen dependencies: Clojars Project

The purpose of konserve is to have a unified associative key-value interface for edn datastructures and binary blobs. Use the standard interface functions of konserve.

You can provide welle configuration options to the new-welle-store constructor as an :bucket-config argument. We do not require additional settings beyond the konserve serialization protocol for the store, so you can still access the store through welle directly wherever you need (e.g. for store deletion).

  (require '[konserve-welle.core :refer :all]
           '[konserve.core :as k)
  (def welle-store (<!! (new-welle-store))) ;; connects to localhost

  (<!! (k/exists? welle-store  "john"))
  (<!! (k/get-in welle-store ["john"]))
  (<!! (k/assoc-in welle-store ["john"] 42))
  (<!! (k/update-in welle-store ["john"] inc))
  (<!! (k/get-in welle-store ["john"]))

License

Copyright © 2016-2017 Christian Weilbach

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Riak backend for konserve with Welle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published