github spring-projects/spring-data-redis 4.2.0

one hour ago

📗 Links

⭐ New Features

  • Register a SubscriptionListener aware adapter if the bean is also a SubscriptionListener #3441
  • @RedisListener should respect implements SubscriptionListener beans #3439
  • Refactor Redis JSON API #3433
  • Migrate legacy Jedis Cluster API to UnifiedJedis #3424
  • Resolve type hint without parsing the entire payload #3408
  • Add support for Redis JSON #3390
  • Add lengthOfValue (HSTRLEN) to ReactiveHashOperations #3383
  • GH-3099: Parse Redis INFO output without using Properties.load() #3382
  • Add lengthOfValue (HSTRLEN) to ReactiveHashOperations #3376
  • Escape backslashes in source string before loading properties #3172
  • Redis INFO output is parsed as (Java) properties, although it is not the same format #3099
  • Avoid potential duplicate parse operation within GenericJacksonJsonRedisSerializer #3012

🐞 Bug Fixes

  • SetOperations.isMember(K, Object...) throws NullPointerException while queued #3491
  • DefaultRedisList.get(int) does not reject an index equal to the list size #3471
  • Fix index bounds check in DefaultRedisList.get #3470
  • Fix RedisList.putFirst(…) to insert at the head of the list #3465
  • RedisList.putFirst(…) adds the element at the tail of the list #3464
  • Fix range and trim of reversed RedisList view #3462
  • RedisList.reversed() view returns an empty range and trim removes all elements #3461
  • Fix queue head operations of reversed RedisList view #3459
  • RedisList.reversed() view polls and peeks at the wrong end and ignores the poll timeout #3458
  • expire sends PEXPIRE on Jedis for TTLs beyond the integer range #3444
  • setEx rejects valid TTLs on Jedis #3443
  • Check for integer overflow in sort LIMIT #3440
  • JedisListCommands.lPop and JedisListCommands.rPop downcast to int unchecked #3438
  • JedisKeyCommands.restore doesn't check range on ttlInMillis if replace = true #3437
  • ExpiryChangeState.of and StreamEntryDeletionResult.fromCode overflow on longs #3436
  • getExpirationDuration and getExpirationInstant return wrong result if asked for milliseconds #3432
  • Fetch hash field TTLs in seconds in DefaultHashOperations #3430
  • Fix inverted equals in RedisStreamCommands.TrimOptions #3429
  • Compare raw TTL values as long in Expirations.TimeToLive #3428
  • DefaultHashOperations.getTimeToLive converts hash-field TTL values twice for non-second TimeUnits #3427
  • TrimOptions.equals is inverted and ignores limit, breaking XAddOptions equality #3426
  • Expirations.TimeToLive.of truncates the raw TTL to int, misclassifying large TTL values #3425
  • Some Asserts assert the wrong / duplicate variable or have a wrong message #3407
  • Fix argument validation in RedisData.setTimeToLive(Long, TimeUnit) #3406
  • Fix typos in Javadoc and assertion messages #3405
  • Use Parser-bound DeserializationContext for parsing type hints in TypeResolver #3404
  • Fix UnifiedJedis watch transaction state #3398
  • GenericJacksonJsonRedisSerializer throws NPE deserializing duplicate properties #3396
  • Resolve @RedisListener consumes placeholders #3395
  • Resolve @RedisListener topic placeholders #3394
  • @RedisListener does not resolve property placeholders in all attributes #3393
  • Transaction with a read before MULTI fails with "Incorrect number of transaction results" #3392
  • Jedis fails on TTL parameters exceeding integer range #3386

📔 Documentation

  • Fix StringRedisConnection references in docs #3469
  • Document conditional set return values #3414
  • Fix broken links in Redis reference documentation #3409
  • Add 3.x to 4.x migration guide #3403
  • Remove duplicated "the" in JavaDoc #3402
  • Fix inconsistent Javadoc parameter references #3401
  • Fix inconsistent Javadoc parameter references #3400

🔨 Dependency Upgrades

  • Upgrade to Jedis 8.0.2 #3466
  • Upgrade to Lettuce 7.8.0.RELEASE #3455
  • Upgrade to Maven Wrapper 3.10.0 #3452
  • Upgrade to Jedis 8.0.1 #3423
  • Upgrade to Lettuce 7.7.0.RELEASE #3422
  • Upgrade to Lettuce 7.6.0.RELEASE #3412
  • Upgrade to Jedis 8.0.0 #3411
  • Upgrade jedis minor and lettuce major versions #3295
  • Upgrade to Jedis 7.2.0 #3282
  • Upgrade to Maven Wrapper 3.10.0 #2960

❤️ Contributors

We'd like to thank all the contributors who worked on this release!

Don't miss a new spring-data-redis release

NewReleases is sending notifications on new releases.