Predis v0.6.1 Release Notes

Release Date: 2010-07-11 // almost 14 years ago
    • Minor internal improvements and clean ups.

    • ๐Ÿ†• New commands available in the Redis v2.2 profile (dev):

      • Misc. : WATCH, UNWATCH
    • Optional modifiers for ZRANGE, ZREVRANGE and ZRANGEBYSCORE queries are supported using an associative array passed as the last argument of their respective methods.

    • The LIMIT modifier for ZRANGEBYSCORE can be specified using either:

      • an indexed array: array($offset, $count)
      • an associative array: array('offset' => $offset, 'count' => $count)
    • The method Predis\Client::__construct() now accepts also instances of Predis\ConnectionParameters.

    • ๐Ÿ‘ป Predis\MultiExecBlock and Predis\PubSubContext now throw an exception when trying to create their instances using a profile that does not support the required Redis commands or when the client is connected to a cluster of connections.

    • Various improvements to Predis\MultiExecBlock:

      • fixes and more consistent behaviour across various usage cases.
      • support for WATCH and UNWATCH when using the current development profile (Redis v2.2) and aborted transactions.
    • ๐Ÿ†• New signature for Predis\Client::multiExec() which is now able to accept an array of options for the underlying instance of Predis\MultiExecBlock. Backwards compatibility with previous releases of Predis is ensured.

    • ๐Ÿ†• New signature for Predis\Client::pipeline() which is now able to accept an array of options for the underlying instance of Predis\CommandPipeline. Backwards compatibility with previous releases of Predis is ensured. The method Predis\Client::pipelineSafe() is to be considered deprecated.

    • ๐Ÿ›  FIX: The WEIGHT modifier for ZUNIONSTORE and ZINTERSTORE was handled incorrectly with more than two weights specified.