0.0.4 • Published 4 years ago

rdsex v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

rdsex

expand redis function with lua script

useage

import IORedis from 'ioredis'
import Rdsex from 'rdsex'

const rdsex = new Rdsex(new IORedis())

/*
hincr key with 1, limit result between 0 and 1
return number while success, otherwise return null
*/
await rdsex.incrBetween('key', 1, 0, 1)
0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago