- Enh #264: Improve performance of
mget()
for big list of keys (alx-xc, rob006)
- Enh #249 Added support to set the redis scheme to tls. Add to configuration:
'scheme' => 'tls'
(tychovbh) - Bug #247:
Cache::getValue()
now returnsfalse
in case of missing key (rhertogh)
- Enh #176: Fix reconnect logic bug, add
protected function sendRawCommand()
(ilyaplot)
- Enh #223: Add
Connection::$username
for using username for authentication (samdark, rvkulikov)
- Enh #227: Added support for adjusting PHP context options and parameters. This allows e.g. supporting self-signed certificates (akselikap)
- Bug #215: Fix
Connection::isActive()
returnsfalse
when the connection is active (cornernote) - Enh #212: Added support for the 'session.use_strict_mode' ini directive in
yii\web\Session
(rhertogh)
- Enh #210: Add Redis 5.0 stream commands. Read more at streams intro (sartor)
- 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 initializeSession::$redis
(rob006) - Enh #199: Increase frequency of lock tries when
$timeout
is used inMutex::acquire()
(rob006)
- Enh #66, #134, #135, #136, #142, #143, #147: Support Redis in cluster mode (hofrob)
- Enh #188: Added option to wait between connection retry (marty-macfly, rob006)
- Bug #166: zrangebyscore without scores does not work (razonyang)
- Enh #13: Added
>
,<
,>=
and<=
conditions support in ActiveQuery (nailfor, zacksleo)
- 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)
- Bug #114: Fixed ActiveQuery
not between
andnot
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)
- 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
tonull
to avoid sending aSELECT
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)
- 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 tostream_socket_client()
(hugh-lee) - Chg #14: Added missing
BLPOP
command to$redisCommands
(samdark) - Chg #61: Added missing
GEO*
commands to$redisCommands
(leadermt)
- Enh #8: Auto increment value was not updated when a primary key was explicitly set (cebe, andruha)
- no changes in this release.
- Bug #6547: Fixed redis connection to deal with large data in combination with
mget()
(pyurin)
- Bug #4745: value of simple string returns was ignored by redis client and
true
is returned instead, now onlyOK
will result in atrue
while all other values are returned as is (cebe) - Enh #3714: Added support for connecting to redis server using a unix socket (savvot, robregonm)
- no changes in this release.
- 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 toActiveQuery
classes (qiangxue) - Enh #4086: changedAttributes of afterSave Event now contain old values (dizews)
- 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 inafterSave
-event (cebe) - Chg #2281: Renamed
ActiveRecord::create()
topopulateRecord()
and changed signature. This method will not call instantiate() anymore (cebe) - Chg #2146: Removed
ActiveRelation
class and moved the functionality toActiveQuery
. All relational queries are now directly served byActiveQuery
allowing to use custom scopes in relations (cebe)
- Initial release.