Skip to content

Update redis to 4.1.1#340

Closed
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-redis-3.3.11-to-4.1.1
Closed

Update redis to 4.1.1#340
pyup-bot wants to merge 1 commit intomasterfrom
pyup-update-redis-3.3.11-to-4.1.1

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates redis from 3.3.11 to 4.1.1.

Changelog

3.5.3

* Restore try/except clauses to __del__ methods. These will be removed
   in 4.0 when more explicit resource management if enforced. 1339
 * Update the master_address when Sentinels promote a new master. 847
 * Update SentinelConnectionPool to not forcefully disconnect other in-use
   connections which can negatively affect threaded applications. 1345

3.5.2

* Tune the locking in ConnectionPool.get_connection so that the lock is
   not held while waiting for the socket to establish and validate the
   TCP connection.

3.5.1

* Fix for HSET argument validation to allow any non-None key. Thanks
   AleksMat, 1337, 1341

3.5.0

* Removed exception trapping from __del__ methods. redis-py objects that
   hold various resources implement __del__ cleanup methods to release
   those resources when the object goes out of scope. This provides a
   fallback for when these objects aren't explicitly closed by user code.
   Prior to this change any errors encountered in closing these resources
   would be hidden from the user. Thanks jdufresne. 1281
 * Expanded support for connection strings specifying a username connecting
   to pre-v6 servers. 1274
 * Optimized Lock's blocking_timeout and sleep. If the lock cannot be
   acquired and the sleep value would cause the loop to sleep beyond
   blocking_timeout, fail immediately. Thanks clslgrnc. 1263
 * Added support for passing Python memoryviews to Redis command args that
   expect strings or bytes. The memoryview instance is sent directly to
   the socket such that there are zero copies made of the underlying data
   during command packing. Thanks Cody-G. 1265, 1285
 * HSET command now can accept multiple pairs. HMSET has been marked as
   deprecated now. Thanks to laixintao 1271
 * Don't manually DISCARD when encountering an ExecAbortError.
   Thanks nickgaya, 1300/1301
 * Reset the watched state of pipelines after calling exec. This saves
   a roundtrip to the server by not having to call UNWATCH within
   Pipeline.reset(). Thanks nickgaya, 1299/1302
 * Added the KEEPTTL option for the SET command. Thanks
   laixintao 1304/1280
 * Added the MEMORY STATS command. 1268
 * Lock.extend() now has a new option, `replace_ttl`. When False (the
   default), Lock.extend() adds the `additional_time` to the lock's existing
   TTL. When replace_ttl=True, the lock's existing TTL is replaced with
   the value of `additional_time`.
 * Add testing and support for PyPy.

3.4.1

* Move the username argument in the Redis and Connection classes to the
   end of the argument list. This helps those poor souls that specify all
   their connection options as non-keyword arguments. 1276
 * Prior to ACL support, redis-py ignored the username component of
   Connection URLs. With ACL support, usernames are no longer ignored and
   are used to authenticate against an ACL rule. Some cloud vendors with
   managed Redis instances (like Heroku) provide connection URLs with a
   username component pre-ACL that is not intended to be used. Sending that
   username to Redis servers < 6.0.0 results in an error. Attempt to detect
   this condition and retry the AUTH command with only the password such
   that authentication continues to work for these users. 1274
 * Removed the __eq__ hooks to Redis and ConnectionPool that were added
   in 3.4.0. This ended up being a bad idea as two separate connection
   pools be considered equal yet manage a completely separate set of
   connections.

3.4.0

* Allow empty pipelines to be executed if there are WATCHed keys.
   This is a convenient way to test if any of the watched keys changed
   without actually running any other commands. Thanks brianmaissy.
   1233, 1234
 * Removed support for end of life Python 3.4.
 * Added support for all ACL commands in Redis 6. Thanks IAmATeaPot418
   for helping.
 * Pipeline instances now always evaluate to True. Prior to this change,
   pipeline instances relied on __len__ for boolean evaluation which
   meant that pipelines with no commands on the stack would be considered
   False. 994
 * Client instances and Connection pools now support a 'client_name'
   argument. If supplied, all connections created will call CLIENT SETNAME
   as soon as the connection is opened. Thanks to Habbie for supplying
   the basis of this change. 802
 * Added the 'ssl_check_hostname' argument to specify whether SSL
   connections should require the server hostname to match the hostname
   specified in the SSL cert. By default 'ssl_check_hostname' is False
   for backwards compatibility. 1196
 * Slightly optimized command packing. Thanks Deneby67. 1255
 * Added support for the TYPE argument to SCAN. Thanks netocp. 1220
 * Better thread and fork safety in ConnectionPool and
   BlockingConnectionPool. Added better locking to synchronize critical
   sections rather than relying on CPython-specific implementation details
   relating to atomic operations. Adjusted how the pools identify and
   deal with a fork. Added a ChildDeadlockedError exception that is
   raised by child processes in the very unlikely chance that a deadlock
   is encountered. Thanks gmbnomis, mdellweg, yht804421715. 1270,
   1138, 1178, 906, 1262
 * Added __eq__ hooks to the Redis and ConnectionPool classes.
   Thanks brainix. 1240
Links

@pyup-bot pyup-bot mentioned this pull request Jan 17, 2022
@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #342

@pyup-bot pyup-bot closed this Jan 27, 2022
@ryananguiano ryananguiano deleted the pyup-update-redis-3.3.11-to-4.1.1 branch January 27, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments