Emulates ioredis by performing all operations in-memory.
MIT License
Bot releases are hidden (Show)
Published by stipsan about 7 years ago
Published by stipsan about 7 years ago
ioredis uses commonjs exports, and now ioredis-mock does as well.
require('ioredis-mock').default
no longer works, use require('ioredis-mock')
instead.
Published by stipsan about 7 years ago
Published by stipsan over 7 years ago
exec
supports a callback argument. (#290)Published by stipsan over 7 years ago
Published by stipsan almost 8 years ago
Published by stipsan about 8 years ago
smove
command. (#217)sdiff
command. (#216)sunion
command. (#215)sinter
command. (#214)Published by stipsan about 8 years ago
Bumping the version to v2 as there are fixes in this release that are breaking changes.
flushdb
command.append
updated to return an integer.dbsize
updated to return an integer.decr
updated to return an integer.decrby
updated to return an integer.expire
updated to return an integer.expireat
updated to return an integer.hdel
updated to return an integer.hexists
updated to return an integer.hincrby
updated to return an integer.hlen
updated to return an integer.hset
updated to return an integer.hsetnx
updated to return an integer.hstrlen
updated to return an integer.incr
updated to return an integer.incrby
updated to return an integer.lpush
updated to return an integer.lpushx
updated to return an integer.mget
required a single array argument, updated to use multiple arguments (single array support will be added later when ioredis Argument Transformers is properly implemented).msetnx
updated to return an integer.persist
updated to return an integer.pexpire
updated to return an integer.pexpireat
updated to return an integer.pttl
updated to return an integer.renamenx
updated to return an integer.rpush
updated to return an integer.rpushx
updated to return an integer.scard
updated to return an integer.setnx
updated to return an integer.sismember
updated to return an integer.strlen
updated to return an integer.ttl
updated to return an integer.hmset
no longer accepts passing an object with keys and values directly. This will be added later when ioredis Argument Transformers is properly implemented.Published by stipsan about 8 years ago
type
command (#207)sadd
no longer allow duplicate values (#204 @kesla)hset
learned to create a new hash if not existing instead of throwing error (#207)hset
updated to return integer reply according to redis spec (#207)set
related commands (sadd
, scard
, etc) implemented using es6 Set
instead of Array
(#204 @kesla)hset
tests refactored (#207)Published by stipsan about 8 years ago
scard
command (#201)discard
command (#200)Published by stipsan about 8 years ago
expire
command (#155)ttl
command (#157)Published by stipsan about 8 years ago
mset
command (#181)msetnx
command (#182)dbsize
command (#183)lpushx
command (#184)incrbyfloat
command (#185)rpushx
command (#186)hincrbyfloat
command (#187)lpop
command (#189)rpop
command (#190)lindex
command (#191)srandmember
command (#192)lset
command (#193)Published by stipsan about 8 years ago
auth
command (#160)bgrewriteaof
command (#161)save
command (#162)lastsave
command (#163)bgsave
command (#164)getrange
command (#165)echo
command (#166)randomkey
command (#167)role
command (#168)flushall
command (#169)ping
command (#170)persist
command (#171)expireat
command (#172)pttl
command (#173)hkeys
command (#174)setex
command (#175)pexpireat
command (#176)hlen
command (#177)pexpire
command (#178)psetex
command (#179)Published by stipsan about 8 years ago
renamenx
command (#152)Published by stipsan about 8 years ago
mget
command (#134 @kesla)Published by stipsan about 8 years ago
brpoplpush
command (#106 @davemcorwin)llen
command (#106 @davemcorwin)lpush
command (#106 @davemcorwin)lrem
command (#106 @davemcorwin)publish
stub (#106 @davemcorwin)rpoplpush
command (#106 @davemcorwin)rpush
command (#106 @davemcorwin)hmset
command supports objects (#106 @davemcorwin)incr
command sets default value '0'
if not exists (#106 @davemcorwin)Published by stipsan about 8 years ago
keys
command (#92 @pivotal-csaa)Published by stipsan over 8 years ago
setnx
commandhsetnx
would report '0' to signal the key was a no-op but in reality did change the existing value.Published by stipsan over 8 years ago
Published by stipsan over 8 years ago