Collection of Redis scripts packaged as a node module
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

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