PackageTrack
Sign in Get early access

yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

2.1.2 13M downloads/mo #1582 most downloaded on Packagist yiisoft/yii2-redis

What this package is like to depend on

Last release 3 months ago

07 May 2026

Release timing varies

gaps range from 2 months to 2.4 years

Nearly every release is documented

notes for 24 of 24 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

27 releases · first in 2013

3 releases in the last 12 months

see the full history below

Release timeline

27 releases · Nov 2013 to May 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 27
  1. 2.1.2 07 May 2026
    Release notes

    What's Changed

    • Revert custom retry in PredisConnection after update predis package by @s1lver in #294

    Full Changelog: 2.1.1...2.1.2

    Open source →
    Release notes
    • Chg #294: Revert custom retry in PredisConnection after update predis package (@s1lver)
    Open source →
  2. 2.1.1 29 Apr 2026
    Release notes

    What's Changed

    • Dropped PHP 7.3 support to align with Yii2 minimum PHP version by @s1lver in #281
    • Add codecov badge by @s1lver in #283
    • Add basic PHPStan support by @s1lver in #282
    • Fixed badge display by @s1lver in #284
    • Applying Yii2 coding standards by @s1lver in #287
    • Check for PHP 8.5 by @s1lver in #286
    • Enhance README.md and internals.md documentation; update scripts in composer.json for improved testing and code style checks. by @terabytesoftw in #288
    • Docs: Component connections by @AugustMiller in #285
    • Enhance documentation and add scripts for composer.json. by @terabytesoftw in #290
    • Fix infinite loop in parseResponse() when fread() returns empty string on broken socket by @dkostik in #291
    • Fix #292: Fixed fwrite() supplied resource is not a valid stream, bump version predis/predis to 3.4 by @s1lver in #292
    • Update PHP, Yii2 dependency in composer.json, and update CHANGELOG.md. by @terabytesoftw in #293

    New Contributors

    Full Changelog: 2.1.0...2.1.1

    Open source →
    Release notes
    • Bug #281: PHP 7.4 compatibility is now fixed (@s1lver)
    • Bug #291: Prevent infinite loop in parseResponse() when fread() returns empty string on broken socket (@dkostik)
    • Bug #292: Fixed fwrite() supplied resource is not a valid stream (@s1lver)
    • Enh #281: PHP 7.3 support was removed to align with Yii2 minimum PHP version (@s1lver)
    • Enh #282: Static analysis with PHPStan has been added (@s1lver)
    • Enh #287: Applying Yii2 coding standards (@s1lver)
    • Chg #292: Bump version predis/predis to 3.4 (@s1lver)
    • Chg #293: Update PHP, Yii2 dependency in composer.json, and update CHANGELOG.md (@terabytesoftw)
    Open source →
  3. 2.1.0 25 Dec 2025
    Release notes
    • Fix #278: Prevent null parameter on SocketException to avoid PHP 8.4 implicity nullable types deprecation (HenryVolkmer)
    • New #276: Added support for predis (antonshevelev)
    • New #276: Changed default value of yii\redis\Cache::$forceClusterMode to false (antonshevelev)
    • New #276: Implemented yii\redis\ConnectionInterface in yii\redis\Connection (antonshevelev)
    Open source →
  4. 2.0.20 05 Jun 2025
    Release notes
    • Bug CVE-2025-48493: Prevent logging AUTH parameters when YII_DEBUG is off (samdark)
    • Bug #270: Prevent null parameter on mb_strlen to avoid PHP 8.4 implicity nullable types deprecation (tehmaestro)
    Open source →
  5. 2.0.19 13 Feb 2025
    Release notes
    • Enh #264: Improve performance of mget() for big list of keys (alx-xc, rob006)
    Open source →
  6. 2.0.18 04 Sep 2022
    Release notes
    • Enh #249 Added support to set the redis scheme to tls. Add to configuration: 'scheme' => 'tls' (tychovbh)
    • Bug #247: Cache::getValue() now returns false in case of missing key (rhertogh)
    Open source →
  7. 2.0.17 11 Jan 2022
    Release notes
    • Enh #176: Fix reconnect logic bug, add protected function sendRawCommand() (ilyaplot)
    Open source →
  8. 2.0.16 04 Oct 2021
    Release notes
    • Enh #223: Add Connection::$username for using username for authentication (samdark, rvkulikov)
    Open source →
  9. 2.0.15 05 May 2021
    Release notes
    • Enh #227: Added support for adjusting PHP context options and parameters. This allows e.g. supporting self-signed certificates (akselikap)
    Open source →
  10. 2.0.14 10 Nov 2020
    Release notes
    • Bug #215: Fix Connection::isActive() returns false when the connection is active (cornernote)
    • Enh #212: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session (rhertogh)
    Open source →
  11. 2.0.13 02 May 2020
    Release notes
    • Enh #210: Add Redis 5.0 stream commands. Read more at streams intro (sartor)
    Open source →
  12. 2.0.12 13 Mar 2020
    Release notes
    • Bug #182: Better handle cache/flush-all command when cache component is using shared database (rob006)
    • Bug #190: Accept null values (razonyang)
    • Bug #191: getIsActive() returns true when socket is not connected (mdx86)
    • Enh #174: Add ability to set up SSL connection (kulavvy)
    • Enh #195: Use Instance::ensure() to initialize Session::$redis (rob006)
    • Enh #199: Increase frequency of lock tries when $timeout is used in Mutex::acquire() (rob006)
    Open source →
  13. 2.0.11 05 Nov 2019
    Release notes
    • Enh #66, #134, #135, #136, #142, #143, #147: Support Redis in cluster mode (hofrob)
    Open source →
  14. 2.0.10 22 Oct 2019
    Release notes
    • Enh #188: Added option to wait between connection retry (marty-macfly, rob006)
    Open source →
  15. 2.0.9 23 Sep 2018
    Release notes
    • Bug #166: zrangebyscore without scores does not work (razonyang)
    • Enh #13: Added >, <, >= and <= conditions support in ActiveQuery (nailfor, zacksleo)
    Open source →
  16. 2.0.8 20 Mar 2018
    Release notes
    • Bug #141: Calling ActiveQuery::indexBy() had no effect since Yii 2.0.14 (cebe)
    • Bug: (CVE-2018-8073): Fix possible remote code execution when improperly filtered user input is passed to ActiveRecord::findOne() and ::findAll() (cebe)
    • Enh #66: Cache component can be configured to read / get from replicas (ryusoft)
    Open source →
  17. 2.0.7 11 Dec 2017
    Release notes
    • Bug #114: Fixed ActiveQuery not between and not conditions which where not working correctly (cebe, ak1987)
    • Bug #123: Fixed ActiveQuery to work with negative limit values, which are used in ActiveDataProvider for the count query (cebe)
    • Enh #9: Added orderBy support to redis ActiveQuery and LuaScriptBuilder (valinurovam)
    • Enh #91: Added option to retry connection after failing to communicate with redis server on stale socket (cebe)
    • Enh #106: Improved handling of connection errors and introduced yii\redis\SocketException for these (cebe)
    • Chg #127: Added PHP 7.2 compatibility (brandonkelly)
    Open source →
  18. 2.0.6 05 Apr 2017
    Release notes
    • Bug #44: Remove quotes from numeric parts of composite key to avoid problem with different hashes for the same record (uniserpl)
    • Bug #67: Fixed regression from 2.0.5, reconnecting a closed connection fails (cebe)
    • Bug #82: Fixed session object destruction failure when key expires (juffin-halli, samdark)
    • Bug #93: Fixed yii\redis\ActiveRecord::deleteAll() with condition (samdark)
    • Bug #104: Fixed execution of two-word commands (cebe,branimir93)
    • Enh #53: Added Mutex that implements a Redis based mutex (turboezh, sergeymakinen)
    • Enh #81: Allow setting Connection::$database to null to avoid sending a SELECT command after connection (cebe)
    • Enh #89: Added support for \yii\db\QueryInterface::emulateExecution() (samdark)
    • Enh #103: Added missing commands and @method documentation for redis commands (cebe)
    • Enh: Optimized find by PK for relational queries and IN condition (cebe, andruha)
    Open source →
  19. 2.0.5 17 Mar 2016
    Release notes
    • Bug #22: Fixed string escaping issue in LuaScriptBuilder (vistart)
    • Bug #37: Fixed detection of open socket (mirocow)
    • Bug #46: Fixed bug to execute session_regenerate_id in PHP 7.0 (githubjeka)
    • Enh #31: Added Connection::$socketClientFlags property for connection flags to be passed to stream_socket_client() (hugh-lee)
    • Chg #14: Added missing BLPOP command to $redisCommands (samdark)
    • Chg #61: Added missing GEO* commands to $redisCommands (leadermt)
    Open source →
  20. 2.0.4 10 May 2015
    Release notes
    • Enh #8: Auto increment value was not updated when a primary key was explicitly set (cebe, andruha)
    Open source →
  21. 2.0.3 01 Mar 2015
    Release notes
    • no changes in this release.
    Open source →
  22. 2.0.2 11 Jan 2015
    Release notes
    • Bug #6547: Fixed redis connection to deal with large data in combination with mget() (pyurin)
    Open source →
  23. 2.0.1 07 Dec 2014
    Release notes
    • Bug #4745: value of simple string returns was ignored by redis client and true is returned instead, now only OK will result in a true while all other values are returned as is (cebe)
    • Enh #3714: Added support for connecting to redis server using a unix socket (savvot, robregonm)
    Open source →
  24. 2.0.0 12 Oct 2014
    Release notes
    • no changes in this release.
    Open source →
  25. 2.0.0-rc 28 Sep 2014 pre-release
    Release notes
    • Bug #1311: Fixed storage and finding of null and boolean values (samdark, cebe)
    • Enh #3520: Added unlinkAll()-method to active record to remove all records of a model relation (NmDimas, samdark, cebe)
    • Enh #4048: Added init event to ActiveQuery classes (qiangxue)
    • Enh #4086: changedAttributes of afterSave Event now contain old values (dizews)
    Open source →
  26. 2.0.0-beta 13 Apr 2014 pre-release
    Release notes
    • Bug #1993: afterFind event in AR is now called after relations have been populated (cebe, creocoder)
    • Enh #1773: keyPrefix property of Session and Cache is not restricted to alnum characters anymore (cebe)
    • Enh #2002: Added filterWhere() method to yii\redis\ActiveQuery to allow easy addition of search filter conditions by ignoring empty search fields (samdark, cebe)
    • Enh #2892: ActiveRecord dirty attributes are now reset after call to afterSave() so information about changed attributes is available in afterSave-event (cebe)
    • Chg #2281: Renamed ActiveRecord::create() to populateRecord() and changed signature. This method will not call instantiate() anymore (cebe)
    • Chg #2146: Removed ActiveRelation class and moved the functionality to ActiveQuery. All relational queries are now directly served by ActiveQuery allowing to use custom scopes in relations (cebe)
    Open source →
  27. 2.0.0-alpha 30 Nov 2013 pre-release
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive