LZ4 compression for ptaoussanis/nippy
Clojure
Switch branches/tags
Nothing to show
Latest commit 5fd40c7 Oct 23, 2013 @mpenet mpenet indentation
Permalink
Failed to load latest commit information.
src/qbits indentation Oct 23, 2013
test/qbits/nippy_lz4/test test the 2 compressor impl Oct 17, 2013
.gitignore initial Oct 17, 2013
.travis.yml touch ci Oct 17, 2013
CHANGELOG.md initial Oct 17, 2013
README.md formating Oct 17, 2013
project.clj remove slingshot and logging Oct 17, 2013

README.md

nippy-lz4

Build Status

Plugable LZ4 compression for Nippy.

Documentation

It's quite straightforward, add nippy-lz4 to your dependencies, then import qbits.nippy-lz4 namespace and pass the compressor you want to use to nippy.

The available compressors are

  • qbits.nippy-lz4/lz4-compressor: the fastest default compressor
  • qbits.nippy-lz4/lz4hc-compressor: the high compression compressor

Ex:

(use 'taoensso.nippy)
(require '[qbits.nippy-lz4 :refer [lz4-compressor lz4hc-compressor]])

(def compressed-data (freeze {:foo :bar} {:compressor lz4hc-compressor}))

(prn (thaw compressed-data {:compressor lz4hc-compressor}))

>> {:foo :bar}

Installation

nippy-lz4 is available on Clojars.

Add this to your dependencies:

[cc.qbits/nippy-lz4 "0.1.0"]

Please check the Changelog if you are upgrading.

License

Copyright © 2013 Max Penet

Distributed under the Eclipse Public License, the same as Clojure.