1.1.10

Latest release in branch 1.x
Released 4 years ago (January 05, 2022)

Software Predis
Branch 1.x
First official release version 1.0.3
First official release date 10 years ago (July 30, 2015)
Supported
PHP versions
PHP ≥ 5.3.9
Release notes https://github.com/predis/predis/releases/tag/v1.1.10
Source code https://github.com/predis/predis/tree/v1.1.10
Documentation https://github.com/predis/predis/wiki
Predis 1.x Releases View full list

What Is New in Predis 1

Predis 1.0 marks a major milestone with significant internal refactoring and modernization. This release focuses on improving code quality, maintainability, and compatibility with modern PHP versions while maintaining the same API developers are familiar with.

Category Key Changes
New Features Support for Redis 6, new connection classes, dropped PHP 5.x support
Improvements Major codebase refactoring, modern PHP syntax, improved exception handling
Bug Fixes Various fixes from the v0.8.x series
Deprecated Removed support for old PHP versions and HHVM

What are the major codebase improvements in Predis 1?

The entire codebase underwent significant refactoring to modernize the code and improve maintainability. This involved adopting modern PHP features and cleaning up the internal architecture.

Developers will benefit from a more stable and cleaner codebase, though the public API remains largely unchanged. This refactoring sets the foundation for future development and makes the code easier to contribute to.

Which PHP versions are supported in Predis 1?

Predis 1.0 drops support for PHP 5.x entirely and requires PHP 7.2 or later. This allows the library to leverage modern PHP features and syntax improvements.

Support for HHVM has also been officially dropped. If you're still running older PHP versions, you'll need to stick with Predis v0.8.x or upgrade your PHP environment.

Does Predis 1 support Redis 6 features?

Yes, Predis 1.0 adds support for Redis 6, including the new Redis protocol version and related features. This keeps the client up-to-date with the latest Redis server capabilities.

The update ensures compatibility with newer Redis commands and protocols, making it suitable for deployments using the latest Redis server versions.

What changed with connection classes in this release?

Predis 1.0 introduces new connection class implementations while maintaining backward compatibility with existing code. The connection handling has been improved for better reliability and performance.

Existing connection parameters should continue to work, but the internal implementation has been modernized to handle connections more efficiently.

How does exception handling work in Predis 1?

Exception handling has been improved with more specific exception types and better error messages. This makes debugging connection issues and command failures much easier.

The new exception hierarchy provides more granular control over error handling, allowing developers to catch specific types of Redis-related exceptions in their applications.

FAQ

Is Predis 1.0 backward compatible with my existing code?
Mostly yes - the public API remains compatible, but you must be running PHP 7.2+. Check your PHP version and test thoroughly before upgrading in production.

What happens if I try to use Predis 1.0 with PHP 5.6?
It will not work. Predis 1.0 requires PHP 7.2 or later. You'll need to either upgrade your PHP environment or continue using Predis v0.8.x.

Are there any new dependencies in this release?
No new external dependencies were added. The changes focus on internal refactoring and modernization rather than adding new package requirements.

Should I upgrade from v0.8.x to v1.0 immediately?
If you're on PHP 7.2+ and need Redis 6 support or want the improved codebase, yes. Otherwise, v0.8.x will continue to work for existing applications.

How does this affect connection pooling and clustering?
Connection handling has been improved internally, but the clustering interface remains compatible. You might see better performance and stability in distributed setups.

Releases In Branch 1.x

Version Release date
1.1.10 4 years ago
(January 05, 2022)
1.1.9 4 years ago
(October 05, 2021)
1.1.8 4 years ago
(September 29, 2021)
1.1.7 5 years ago
(April 04, 2021)
1.1.6 5 years ago
(September 11, 2020)
1.1.5 5 years ago
(September 10, 2020)
1.1.4 5 years ago
(August 31, 2020)
1.1.3 5 years ago
(August 18, 2020)
1.1.2 5 years ago
(August 11, 2020)
1.1.1 9 years ago
(June 17, 2016)
1.1.0 9 years ago
(June 02, 2016)
1.0.0 9 years ago
(June 01, 2016)
1.0.4 9 years ago
(May 30, 2016)
1.0.3 10 years ago
(July 30, 2015)
1.0.2 10 years ago
(July 30, 2015)
1.0.1 10 years ago
(July 30, 2015)