Releases: fppt/jedis-mock
Releases · fppt/jedis-mock
1.0.2
🚀 New commands
ZREVRANGE
,ZREVRANGEBYSCORE
per #177
🐞 Bug fixes
Thanks @newacct for reporting the bugs!
- #185 HLEN fails when key does not exist
- #186 ZRANGE returns incorrect order for elements with the same score
- #187 HSET after EXPIRE discards the expiration
- #189 SETBIT clears other bits
- #191 HKEYS/HVALS/HGETALL fails when key does not exist
- #192 HDEL does not work on additional arguments
- #202 When calling RedisServer.stop, disconnect existing clients (thanks @bluecontainer!)
1.0.1
1.0.0
🥳 🍾 This is a major release made as a result of a semester work of the following nice people (in alphabetic order):
- @aleksandr1101,
- @gogagum,
- @Julia-st96,
- @pekashy
New features
RedisCommandInterceptor
introduced, allowing users to intercept calls to jedis-mock and
- perform additional verifications
- stub the replies for unsupported operations
- generally use jedis-mock as a testing proxy
New supported operations
PSUBSCRIBE
andPUNSUBSCRIBE
(#26)PUBSUB CHANNELS
PUBSUB NUMPAT
PERSIST
(#53)WATCH
andUNWATCH
(#80)DISCARD
Bug fixes
- Fixed concurrency code. Multiple issues randomly occured in multithreaded environment are expected to be gone.
subscribe
didn't work for multiple channels
Maintenance
- Major code clean up:
- Operation classes are categorized, put to separate packages and are being registered automatically in runtime.
- Tests are categorized and put to separate packages.
- Google Guava dependency removed.
- Do not use serialization for internal storage of data structures.
- Automatic report with list of supported and unsupported operations introduced.
- Dependabot introduced. All the Maven dependencies are now automatically updated to their latest versions.
- Upgraded reference Redis version to 6.2
0.1.23
Extended parameters for SET
method supported
SET EX|PX NX|XX
(fix #91)
Release 0.1.22
Release 0.1.21
Bug fix
- #135 RedisClient not closed when user forgot to
quit
Release 0.1.20
Bug fixes
- #121
flushall
doesn't clear all the databases - #122
keys
andscan
don't take into account key expirations
New methods supported
zrevrangebylex
(thanks @checkpoint20!)hscan
Release 0.1.19
Bug fixes
ZREMRANGEBYSCORE
does not work for negative scores (#116)INCRBYFLOAT
invocation causes exception with message "Long
cannot be cast to[B
"- When
HINCRBYFLOAT
is called with int parameter on int value, it should return int (thanks @24kpure for the fix provided in #101)
Newly Supported Operations
ZRANGEBYSCORE
HELLO
always returnsproto, 2
in order to support LettuceClient (#104)
Release 0.1.18
Special thanks to
@mwiede
@fxshlein
@mpetricek-corp
@fluffy88
@etolbakov
Bug fix
- hsetnx is not returning 0 if field already exists (#97)
Changes
- We now use TestContainers and Redis 5.0 as a comarison base
- Jedis is updated to 3.6.0
Newly Supported Operations
HSET
now supportsMap
as a parameter in order to set multiple sub-keys at onceCLIENT SETNAME
is now mocked according to the specification (just returns 'OK')ZREMRANGEBYSCORE
Release 0.17.0
Release with client support and to test release pipeline still working