CHANGELOG 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. v0.6.0
  2. * New commands added for the Redis 2.0 (DEV) profile:
  3. - Strings: APPEND, SUBSTR
  4. - ZSets : ZCOUNT, ZRANK, ZUNION, ZINTER, ZREMBYRANK, ZREVRANK
  5. - Hashes : HSET, HINCRBY, HGET, HDEL, HEXISTS, HLEN, HKEYS, HVALS,
  6. HGETALL
  7. - Misc. : DISCARD, CONFIG
  8. * The GET parameter for the SORT command now accepts also multiple key
  9. patterns by passing an array of strings.
  10. * KEYS will return a multibulk reply starting from Redis 2.0 (DEV). Predis
  11. handles this change in a backwards-compatible way.
  12. * Switched to class-based handlers instead of anonymous functions to
  13. handle the various server response types.
  14. * CommandPipeline and MultiExecBlock return their instances when invoking
  15. commands, thus allowing method chaining in pipelines and multi-exec blocks.
  16. * MultiExecBlock instances can handle the new DISCARD command.
  17. * Introduced client-level options with the new Predis\ClientOptions class.
  18. Options can be passed to Predis\Client::__construct in its second argument
  19. as an array or an instance of Predis\ClientOptions. For brevity's sake and
  20. compatibility with older versions, the constructor of Predis\Client still
  21. accepts an instance of Predis\RedisServerProfile in its second argument.
  22. The currently supported client options are:
  23. - profile [default: "2.0" as of Predis 0.6.0]
  24. specifies which server profile to use when connecting to Redis. This
  25. option accepts an instance of Predis\RedisServerProfile or a string
  26. that indicates the target version.
  27. - key_distribution [default: Predis\Utilities\HashRing]
  28. specifies which key distribution algorithm to use to distribute keys
  29. among the servers that compose a cluster. This option accepts an
  30. instance of Predis\Utilities\IRing so that users can implement their
  31. own key distribution strategy. The new Predis\Utilities\KetamaPureRing
  32. class provides a pure-PHP implementation of the Ketama algorithm.
  33. - throw_on_error [default: TRUE]
  34. server errors can optionally be handled "silently": instead of throwing
  35. an exception, the client returns an error response type.
  36. - iterable_multibulk [EXPERIMENTAL - default: FALSE]
  37. in addition to the classic way of fetching a whole multibulk reply
  38. into an array, the client can now optionally stream a multibulk reply
  39. down to the user code by using PHP iterators. It is just a little bit
  40. slower, but it can save a lot of memory in certain scenarios.
  41. * New parameters for connections:
  42. - alias [default: not set]
  43. every connection can now be identified by an alias that is useful to
  44. get a certain connection when connected to a cluster of Redis servers.
  45. - weight [default: not set]
  46. allows the client to balance the keys asymmetrically across multiple
  47. servers. This might be useful when you have servers with different
  48. amounts of memory and you want to distribute the load of your keys
  49. accordingly.
  50. - connection_async [default: FALSE]
  51. estabilish connections to servers in a non-blocking way, so that the
  52. client is not blocked while the underlying resource performs the actual
  53. connection.
  54. - connection_persistent [default: FALSE]
  55. the underlying connection resource is left open when a script ends its
  56. lifecycle. Persistent connections can lead to unpredictable or strange
  57. behaviours, so they should be used with extreme care.
  58. * Connections now support float values for the connection_timeout parameter
  59. to express timeouts with a microsecond resolution.
  60. v0.5.1
  61. * RPOPLPUSH has been changed from bulk command to inline command in Redis
  62. 1.2.1, so ListPopLastPushHead now extends InlineCommand. The old RPOPLPUSH
  63. behavior is still available via the ListPopLastPushHeadBulk class so that
  64. you can override the server profile if you need the old (and uncorrect)
  65. behaviour when connecting to a Redis 1.2.0 instance.
  66. * Added missing support for BGREWRITEAOF for Redis >= 1.2.0
  67. * Implemented a factory method for the RedisServerProfile class to ease the
  68. creation of new server profile instances based on a version string.
  69. v0.5.0
  70. * First versioned release of Predis