Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Release notes
This new release brings numerous features and bugfixes, if you are using the 3.x branch you are urged to upgrade to this version.
The most awaited new feature is the ability to set a server pool in configuration (documentation to be written still) - This won't be used as of now by the cache, lock, path or queue implementation, but provides a public API for external users that would use multiple Redis servers for various business reasons. This feature remains experimental as the way it's to be configured is not stable and still unused yet by the provided backends.
The 3.x branch is still moving fast until it'll reach a stable point where it'll be usable for production over a sharded environment. Until then, most patches will attempt to unify its internals to match the way the 8.x branch will look like in order to facilitate maintainance between the 2 branches.
Full changelog:
- Added the client manager and client pool classes, as their primitive configuration options to be able to manage a Redis server pool on PHP side. This is experimental.
- Moved some static functions around to make the API more consistent.
- Got rid of most static calls in various backends implementations, real connector is now injected by an upper layer.
- Refactored all the unit tests to be included in PSR-0/PEAR class hierarchy, this makes the whole being a lot easier to read and modify.
- Fixed a bug that happened when cache clear, set and get where done at the exact same second, using a timestamp based and an arbitrary serial number as flush key, fixing a lot of bugs when reverting features or rebuilding caches.
- Fixed the autoloaders hanging around everywhere because of the wrongly designed test suite and to Predis usage, code is cleaner and should be a bit more failsafe.
- Changed the getKey() method signature, the method now accepts only one argument which is either a string or an array, in order to normalize with the future 8.x version.
- Fixed PhpRedis Queue implementation, should now work gracefully.
- Issue #2475869 by mdupont: RedisCache::getMultiple() seriously wrong behavior.
- Issue #2478447 by mikl: Notice: Constant PREDIS_BASE_PATH already defined if set in settings PHP.
- Issue #2453065 by DrColossos: Invalid bulk length due to possbile wrong function call.
- Thanks to the previous three points and their respective authors, Predis now passes all unit tests but one single remaining! A great thank you to all the testers!