@gosquared/redis-scripts

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i @gosquared/redis-scripts

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jt
  • thedeveloper
  • gosquared-admin