CHANGELOG 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. v0.x.x
  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. * New parameters for connections:
  18. - alias [default: not set]
  19. every connection can now be identified by an alias that is useful to
  20. get a certain connection when connected to a cluster of Redis servers.
  21. - weight [default: not set]
  22. allows the client to balance the keys asymmetrically across multiple
  23. servers. This might be useful when you have servers with different
  24. amounts of memory and you want to distribute the load of your keys
  25. accordingly.
  26. - connection_async [default: FALSE]
  27. estabilish connections to servers in a non-blocking way, so that the
  28. client is not blocked while the underlying resource performs the actual
  29. - connection_persistent [default: FALSE]
  30. the underlying connection resource is left open when a script ends its
  31. lifecycle. Persistent connections can lead to unpredictable or strange
  32. behaviours, so they should be used with extreme care.
  33. * Connections now support float values for the connection_timeout parameter
  34. to express timeouts with a microsecond resolution.
  35. * In addition to the classic way of fetching a whole multibulk reply into an
  36. array, the client can now optionally stream a multibulk reply down to the
  37. user code by using PHP iterators. It is just a little bit slower, but it
  38. can save a lot of memory in certain scenarios.
  39. * Server errors can optionally be handled "silently": instead of throwing an
  40. exception, the client returns a error response type.
  41. v0.5.1
  42. * RPOPLPUSH has been changed from bulk command to inline command in Redis
  43. 1.2.1, so ListPopLastPushHead now extends InlineCommand. The old RPOPLPUSH
  44. behavior is still available via the ListPopLastPushHeadBulk class so that
  45. you can override the server profile if you need the old (and uncorrect)
  46. behaviour when connecting to a Redis 1.2.0 instance.
  47. * Added missing support for BGREWRITEAOF for Redis >= 1.2.0
  48. * Implemented a factory method for the RedisServerProfile class to ease the
  49. creation of new server profile instances based on a version string.
  50. v0.5.0
  51. * First versioned release of Predis