- Raise errors for empty arrays as arguments
- Update error messages to conform to Redis 2.8. This officially means
mock_redis
no longer supports Redis 2.6 or lower. All testing in TravisCI is now done against 2.8 - Update return value of TTL to return -2 if key doesn't exist
- Add support for the HINCRBYFLOAT command
- Add support for
count
parameter on SRANDMEMBER - Add support for the PTTL command
- Improve support for negative start indices in LRANGE
- Improve support for negative start indices in LTRIM
- Allow
del
to accept arrays of keys
- Add support for :nx, :xx, :ex, :px options for SET command
- Added futures support
- Added support for Ruby 2.0.0, dropped support for Ruby 1.8.7
- Changes for compatibility with JRuby
- Fix
#pipelined
to yield self
- Fixed
watch
to return OK when passed no block - Implemented
pexpire
,pexpireat
- Fixed
expire
to use millisecond precision
- Implemented
mapped_mget
,mapped_mset
,mapped_msetnx
- Fixed
rpoplpush
when therpop
is nil
- Avoid mutation of @data from external reference
- Fix sorted set (e.g.
zadd
) with multiple score/member pairs
- Fix
zrevrange
to return an empty array on invalid range - Fix
srandmember
spec on redis-rb 3.0.3 - Stringify keys in expiration-related commands
- Update INFO command for latest Redis 2.6 compatibility
- Treat symbols as strings for keys
- Add #reconnect method (no-op)
- Support for
connected?
,disconnect
(no-op) - Fix
*
inkeys
to support 0 or more
- Support default argument of
*
for keys - Allow
MockRedis
to take a TimeClass
- Support for
#sort
(ascending and descending only)
- Support exclusive ranges in
zcount
- List methods (
lindex
,lrange
,lset
, andltrim
) can take string indexes - Fix typo in shared example
zset
spec - Fix
lrange
to return[]
when start is too large - Update readme about spec suite compatibility
- Support
incrbyfloat
(new in Redis 2.6) - Fix specs to pass in Redis 2.6
- Deprecated spec suite on 2.4
- Support
location
as an alias toid
forSidekiq
's benefit
- Support
watch
sadd
is now Redis 2.4-compliant
- Support
MockRedis.connect
- Support
redis-rb
>= 3.0 - Support Redis::Distributed
- Support ruby 1.9.3 in spec suite
- Support subsecond timeouts
- Support
-inf
,+inf
in #zcount - Return array of results from pipelined calls
- Use
debugger
instead of the deprecatedruby-debug19
- Fix exception handling in transaction wrappers
- Fix rename error behaviour for nonexistant keys
- bugfixes: teach various methods to correctly handle non-string values
- Support
mapped_hmset
/mapped_hmget
- Support
pipelined
- Correctly handle out-of-range conditions for
zremrangebyrank
andzrange
- Fix off-by-one error in calculation of
ttl
- Support hash operator (
[]
/[]=
) as synonym ofget
/set
- Misc bugfixes
- Support passing a block to
#multi
.
- Fixes for 1.9.2; no functionality changes.
- Fix handling of -inf, +inf, and exclusive endpoints (e.g. "(3") in zrangebyscore, zrevrangebyscore, and zremrangebyscore. ("Fix" here means "write", as it's something that was completely forgotten the first time around.)
- Support
move(key, db)
to move keys between databases.
- Fix gem homepage.
Initial release.