raj

redis-atomic-json

Atomic JSON operations for Redis.

Showing:

Popularity

Downloads/wk

1

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Redis Atomic JSON

Build Status: Build Status

Wraps node_redis, adding the support for atomic updates to JSON blobs.

Usage

Simply create an instance of a redis client, and use redis-atomic-json to wrap it:

var redis = require('redis'),
  client = redis.createClient(),
  client = require('redis-atomic-json').wrap(client);

Wrapping the client will add the following methods:

jgetall

Return the object stored as a JSON string:

client.jgetall('my-json-blob');

jset

Atomically set a field on a JSON blob:

client.jset('my-json-blob', 'newKey', 33.5);

// or.

client.jset('my-json-blob', {newKey: 33.5})

jdel

Atomically delete a field on a JSON blob:

client.jdel('my-json-blob', 'newKey');

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100