Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
LZ4 compression for ptaoussanis/nippy
branch: master
Failed to load latest commit information.
src/qbits indentation
test/qbits/nippy_lz4/test test the 2 compressor impl
.gitignore initial
.travis.yml touch ci
CHANGELOG.md initial
README.md formating
project.clj remove slingshot and logging

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.

Something went wrong with that request. Please try again.