Predis Versions Save

A flexible and feature-complete Redis client for PHP.

v3.0.0-alpha1

3 months ago

Predis v3.0 introduces support for new communication protocol RESP3 and new features based on it.

Breaking Changes

  • Refactored Relay integration (#1423)
  • Changed interface of CLIENT command (#1337)
  • Changed interfaces for commands to support Redis 6.2—7.0 arguments (#1330)

Added

  • Added support for RESP3 communication protocol (#1047)
  • Added support for Push notifications (#1316)
  • Added support for Sharded Pub/Sub (#1303)
  • Added support for XGROUP commands (#1324)
  • Added support for XREADGROUP command (#1327)
  • Added support for XAUTOCLAIM command (#1328)
  • Added support for XINFO commands (#1331)
  • Added support for Redis Gears triggered functions API (#1348)

v2.2.2

7 months ago

Added

  • Added client_info client parameter
  • Added support for CLUSTER container command

Fixed

  • Fixed EXPIRETIME not using prefix
  • Disabled CLIENT SETINFO calls by default

v2.2.1

8 months ago

Added

  • Added support for WAITAOF command (#1357)
  • Added support for SHUTDOWN command (#1359)
  • Added support for FUNCTION command (#1332)
  • Added support for new optional PEXPIRE, PEXPIREAT and COMMAND
  • Added missing Redis Stack commands to KeyPrefixProcessor (#1358)

Changed

  • Set client name and version when establishing a connection (#1347)

v2.2.0

10 months ago

Predis v2.2.0 introduces official support for Redis Stack as well as a Relay integration for substantially faster read performance.

Added

  • Added support for Relay (#1263)
  • Added support for FCALL_RO command (#1191)
  • Added support for Redis JSON, Bloom, Search and TimeSeries module (#1253)
  • Added support for ACL SETUSER, GETUSER, DRYRUN commands (#1193)

Changed

  • Minor code style and type-hint changes (#1311)

Fixed

  • Fixed prefixes for XTRIM and XREVRANGE commands (#1230)
  • Fixed fclose() being called on invalid stream resource (#1199)
  • Fixed BitByte and ExpireOptions traits skip processing on null values (#1169)
  • Fixed missing @return annotations (#1265)
  • Fixed GETDEL prefixing (#1306)

Contributors

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

@jessarcher, @nicolas-grekas, @p-jahn, @tillkruss and @vladvildanov

v2.2.0-RC1

11 months ago

Added

  • Added support for Relay (#1263)
  • Added support for Redis JSON, Bloom, Search and TimeSeries module (#1253)
  • Added support for ACL SETUSER, GETUSER, DRYRUN commands (#1193)
  • Added support for FCALL_RO command (#1191)

Fixed

  • Fixed prefixes for XTRIM and XREVRANGE commands (#1230)
  • Fix fclose() being called on invalid stream resource (#1199)
  • Fix BitByte and ExpireOptions traits skip processing on null values (#1169)
  • Fix missing @return annotations (#1265)

Contributors

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

@jessarcher, @tillkruss and @vladvildanov

v2.1.2

1 year ago

Added

  • Added stream commands to KeyPrefixProcessor (#1051)
  • Added ReplicationStrategy::$loadBalancing option to disable replica reads (#1168)
  • Added support for FCALL and FUNCTIONS commands (#1049)
  • Added support for PEXPIRETIME command (#1031)
  • Added support for EXPIRETIME command (#1029)
  • Added support for EVAL_RO command (#1032)
  • Added support for LCS command (#1035)
  • Added support for SORT_RO command (#1044)
  • Added support for SINTERCARD command (#1027)
  • Added support for EVALSHA_RO command (#1034)
  • Added support for new arguments for BITPOS and BITCOUNT commands (#1045)
  • Added support for new arguments for EXPIRE and EXPIREAT commands (#1046)

Bug Fixes

  • Fixed deprecated function call syntax

Deprecated

  • Further deprecated phpiredis and webdis integration (#1179)

Maintenance

  • Applied coding standards
  • Pass PHPStan level 2

v2.1.1

1 year ago

Bug Fixes

  • Fix @template in Predis\Client (#1017)
  • Fix support options array in ZINTERSTORE and ZUNIONSTORE (#1018)

Contributors

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

@franmomu and @tillkruss

v2.1.0

1 year ago

New Features

  • Implemented GETEX command (#872)
  • Implemented GETDEL command (#869)
  • Implemented COPY command (#866)
  • Implemented FAILOVER command (#875)
  • Implemented LMOVE command (#863)
  • Implemented LMPOP command (#1013)
  • Implemented HRANDFIELD command (#870)
  • Implemented SMISMEMBER command (#871)
  • Implemented ZMPOP command (#831)
  • Implemented BLMOVE command (#865)
  • Implemented BLMPOP command (#1015)
  • Implemented BZMPOP command (#833)
  • Implemented BZPOPMIN command (#862)
  • Implemented BZPOPMAX command (#864)
  • Implemented ZUNION command (#860)
  • Implemented ZINTER command (#859)
  • Implemented ZINTERCARD command (#861)
  • Implemented ZRANGESTORE command (#829)
  • Implemented ZDIFFSTORE command (#828)
  • Implemented ZDIFF command (#826)
  • Implemented ZRANDMEMBER command (#825)
  • Implemented ZMSCORE (#823)
  • Implemented GEOSEARCH command (#867)
  • Implemented GEOSEARCHSTORE command (#873)

Bug Fixes

  • Added annotations to suppress PHP 8.1 return type deprecation warning (#810)

Maintenance

  • Added mixin annotations for traits (#835)

v2.0.3

1 year ago
  • Improved PHP 8.2 support
  • Call is_resource() before reading/writing
  • Added partial support for Redis Stream commands
  • Fixed Sentinel authentication issue

v2.0.2

1 year ago
  • Fixed PHP 8.2 deprecation notice: Use of "static" in callables