jsonappy
Snappy compress JSON for Redis and other providers.
Getting started
npm i jsonappy --save
const jsonappy = ;let buffer = null; ; // <Buffer ...> ; // { foo: 'bar' }
Redis and other providers
Supposing your provider follows get(key, callback)
and set(key, value, callback)
like node-redis.
const jsonappy = ;const redis = ;const client = redis;const snappyClient = ; snappyClient; snappyClient ; // { foo: 'bar' }
Develop
For test proposes, please make sure to have redis-server running.
npm start
Requirements
Node.js 4+
MIT License (c) Chef's Plate