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.
npm install --save keyv @keyv/compress-lz4
import Keyv from 'keyv';
import KeyvLz4 from '@keyv/compress-lz4';
const keyv = new Keyv({store: new Map(), compression: new KeyvLz4()});
All options for @keyv/compress-lz4
are based on the package lz4-napi.