Skip to content

replikativ/konserve-carmine

Repository files navigation

konserve-carmine

A redis backend for konserve implemented with carmine.

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 the carmine redis connection specification map to the new-carmine-store constructor as an argument. We do not require additional settings beyond the konserve serialization protocol for the store, so you can still access the store through carmine directly wherever you need.

  (require '[konserve-carmine.core :refer :all]
           '[konserve.core :as k)
  (def carmine-store (<!! (new-carmine-store)))

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

License

Copyright © 2016-2020 Christian Weilbach and contributors

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

About

A redis backend with carmine for konserve.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published