0.0.2 • Published 7 years ago

@gosquared/redis-scripts v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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);