@gosquared/redis-scripts
v0.0.2
Published
Collection of redis scripts packaged as a node module
Downloads
7
Readme
redis-scripts
GoSquared is customer analytics and chat platform. We've worked with Redis in real time systems and have developed scripts for it along the way.
npm install --save redis @gosquared/redis-scripts
let createScripts = require('@gosquared/redis-scripts')
let redis = require('redis');
let redisScripts = createScripts(redis);
// hmsetex
let { hmsetex } = redisScripts;
let key = 'your-key';
let fields = { some_field: 'test', another_field: 'foo' };
hmsetex(key, fields).then(handleResult).catch(handleError);