@keyv/compress-lz4
v1.0.0
Published
lz4 compression for Keyv
Downloads
187
Maintainers
Readme
@keyv/compress-lz4
lz4 compression for Keyv
lz4 compression for Keyv.
lz4
is a data compression algorithm that is designed to be fast and efficient and is provided by the package lz4-napi.
Install
npm install --save keyv @keyv/compress-lz4
Usage
import Keyv from 'keyv';
import KeyvLz4 from '@keyv/compress-lz4';
const keyv = new Keyv({store: new Map(), compression: new KeyvLz4()});
API
@keyv/compress-lz4([options])
options
All options for @keyv/compress-lz4
are based on the package lz4-napi.