Releases: fppt/jedis-mock
1.1.2
π Bugfix
- #480 Non-integer scores in
zset
get rounded to integer inzrange withscores
- Thread leak if a large number of
RedisServer
instances is being created and stopped.
π Enhancement
- #475
RedisServer
now hasisRunning()
method which allows one to check if the server is running from another thread.
πΌ Maintenance
- Dependencies updates
Thanks @penev-ff and @newacct for reporting issues and @Alex286756 for providing the quick solution
1.1.1
π Bugfixes
Streams
- #452
XADD
does not unblockXREAD
with BLOCK > 0
Transactions
FLUSHALL
must be queued insideMULTI
-EXEC
transactionFLUSHALL
must notify all theWAIT
-monitored keysMULTI
andWAIT
inside transaction should return errors but not discard the transaction- In case there are errors when collecting the transaction queue, the whole transaction is not executed
πΌ Maintenance
- Code refactoring
- Dependencies updates
Thanks @filipezlopez for reporting the bug and @1BAH for providing the fix and refactorings
1.1.0
π Streams support
Starting from version 1.1.0, JedisMock partially supports stream operations: a feature requested years ago, in particular in tickets #134 and #138.
New commands:
XADD
XDEL
XLEN
XRANGE
XREAD
XREVRANGE
XTRIM
π Bug fixes
- Negative TTL values in commands
SETEX
,PSETEX
,SET
should produce an error (instead of setting expiration time in the past). - Command submission inside
MULTI
...EXEC
transactions should returnQUEUED
instead ofOK
.
πΌ Maintenance
Dependencies are updated
Thanks to @1BAH for development of streams functionality for Jedis-Mock!
1.0.13
π New commands supported
Sorted Set operations
ZDIFF
ZDIFFSTORE
ZINCRBY
ZINTER
ZINTERCARD
ZINTERSTORE
ZLEXCOUNT
ZMPOP
ZMSCORE
ZPOPMAX
ZPOPMIN
ZRANGESTORE
ZRANK
ZREMRANGEBYLEX
ZREMRANGEBYRANK
ZREVRANK
ZSCAN
ZUNION
ZUNIONSTORE
BZMPOP
BZPOPMAX
BZPOPMIN
Thanks @Alex286756 for your contribution!
π§ͺ Testing
- Enabled native tests for Sorted Sets operations
- All the tests now use AssertJ
πΌ Maintenance
- Added support for Lettuce 6.3.0
- Updated dependencies
1.0.12
π New features
- #374
SMISMEMBER
support
π Bug fixes
- #360 Redisson lock does not work with Jedis-mock
- #371 HDEL without fields behaves differently to Redis
πΌ Maintenance
- Reference Redis version is upgraded to 7.2, the reference list of commands now reflects version 7.2
- Dependencies updated
π Acklnowledgements
- Thanks @mikemole, @SHildebrandt, and @ngophuhung96 for reporting the issues.
- Thanks @Alex286756 and @1BAH for their code contributions.
1.0.11
π New features
GETDEL
command support (thanks @Andrewsoares15)
π Bugfixes
- #354 Unable to put data into Redis hash with Redisson client
1.0.10
1.0.9
1.0.8
This huge release is a result of joint work of @TheCrashDown, @staketd and @Rheamer. Also big thanks for @newacct for reporting the bugs
π New commands
Lua Scripting
(πΎ This is a long awaited functionality, requested in issues #12, #96, #100 and #56. See readme file for usage example and current limitations.)
Lists
Sets
π§ͺ Native tests
LIST native tests
π’ Nearly all native LIST tests are being succesfully run on CI, except for following scenarios
- π‘ Linked BRPOPLPUSH
- π‘ Circular BRPOPLPUSH
- π‘ BRPOPLPUSH does not affect WATCH while still blocked
- π‘ PUSH resulting from BRPOPLPUSH affect WATCH
SET native tests
π’ All the SET native tests are now being successfully run on CI
π Bug fixes
- #310
HSET
doesn't work with value longer than 1000 characters (degradation since 1.0.6) - #311
ZRANGEBYSCORE
negative count doesn't work - #312 Sets, Zsets and Lists exist even after all elements removed
LIMIT
parameter doesn't work forZ(REV)RANGEBYLEX
SPOP
doesn't support a parameter with a number of elements to return- Zero must mean indefinite wait in list blocking operations
- Not checking for target type in
RPOPLPUSH
. JedisMock could pop element and not push it into target, thus losing element - Throttling thread in RedisClient when client has closed connection.
- handle negative timeout
- handle transaction mode in blocking operations
- correctly check for types in
BRPOP
,BLPOP
- check for key existence in
LSET
- Fix
LRANGE
end parameter out of negative range case - Fix not handling wrong direction name in
LINSERT
RENAME
must notify blocked keys- List pop operations missing type validation
- List pop operations not handling watched keys
πΌ Maintenance
Dependencies updated
1.0.7
π New commands supported
π Bug fixes
MGET
should returnnull
for non-string keys (instead of an error)
π§ͺ Infrastructure
- Native tests for
INCRBY
/INCRBYFLOAT
are now being executed
πΌ Maintenance
- Dependencies are updated