Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update redis to 3.0.0.post1 #125

Closed
wants to merge 1 commit into from

Conversation

pyup-bot
Copy link
Contributor

This PR updates redis from 2.10.6 to 3.0.0.post1.

Changelog

3.0.0

BACKWARDS INCOMPATIBLE CHANGES
 * When using a Lock as a context manager and the lock fails to be acquired
   a LockError is now raised. This prevents the code block inside the
   context manager from being executed if the lock could not be acquired.
 * Renamed LuaLock to Lock.
 * Removed the pipeline based Lock implementation in favor of the LuaLock
   implementation.
 * Only bytes, strings and numbers (ints, longs and floats) are acceptable
   for keys and values. Previously redis-py attempted to cast other types
   to str() and store the result. This caused must confusion and frustration
   when passing boolean values (cast to 'True' and 'False') or None values
   (cast to 'None'). It is now the user's responsibility to cast all
   key names and values to bytes, strings or numbers before passing the
   value to redis-py.
 * The StrictRedis class has been renamed to Redis. StrictRedis will
   continue to exist as an alias of Redis for the forseeable future.
 * The legacy Redis client class has been removed. It caused much confusion
   to users.
 * ZINCRBY arguments 'value' and 'amount' have swapped order to match the
   the Redis server. The new argument order is: keyname, amount, value.
 * MGET no longer raises an error if zero keys are passed in. Instead an
   empty list is returned.
 * MSET and MSETNX now require all keys/values to be specified in a single
   dictionary argument named mapping. This was changed to allow for future
   options to these commands in the future.
 * ZADD now requires all element names/scores be specified in a single
   dictionary argument named mapping. This was required to allow the NX,
   XX, CH and INCR options to be specified.
 * Removed support for EOL Python 2.6 and 3.3. Thanks jdufresne
OTHER CHANGES
 * Added missing DECRBY command. Thanks derek-dchu
 * CLUSTER INFO and CLUSTER NODES respones are now properly decoded to
   strings.
 * Added a 'locked()' method to Lock objects. This method returns True
   if the lock has been acquired and owned by the current process,
   otherwise False.
 * EXISTS now supports multiple keys. It's return value is now the number
   of keys in the list that exist.
 * Ensure all commands can accept key names as bytes. This fixes issues
   with BLPOP, BRPOP and SORT.
 * All errors resulting from bad user input are raised as DataError
   exceptions. DataError is a subclass of RedisError so this should be
   transparent to anyone previously catching these.
 * Added support for NX, XX, CH and INCR options to ZADD
 * Added support for the MIGRATE command
 * Added support for the MEMORY USAGE and MEMORY PURGE commands. Thanks
   Itamar Haber
 * Added support for the 'asynchronous' argument to FLUSHDB and FLUSHALL
   commands. Thanks Itamar Haber
 * Added support for the BITFIELD command. Thanks Charles Leifer and
   Itamar Haber
 * Improved performance on pipeline requests with large chunks of data.
   Thanks tzickel
 * Fixed test suite to not fail if another client is connected to the
   server the tests are running against.
 * Added support for SWAPDB. Thanks Itamar Haber
 * Added support for all STREAM commands. Thanks Roey Prat and Itamar Haber
 * SHUTDOWN now accepts the 'save' and 'nosave' arguments. Thanks
   dwilliams-kenzan
 * Added support for ZPOPMAX, ZPOPMIN, BZPOPMAX, BZPOPMIN. Thanks
   Itamar Haber
 * Added support for the 'type' argument in CLIENT LIST. Thanks Roey Prat
 * Added support for CLIENT PAUSE. Thanks Roey Prat
 * Added support for CLIENT ID and CLIENT UNBLOCK. Thanks Itamar Haber
 * GEODIST now returns a None value when referencing a place that does
   not exist. Thanks qingping209
 * Added a ping() method to pubsub objects. Thanks krishan-carbon
 * Fixed a bug with keys in the INFO dict that contained ':' symbols.
   Thanks mzalimeni
 * ssl_cert_reqs now has a default value of 'required' by default. This
   should make connecting to a remote Redis server over SSL more secure.
   Thanks u2mejc
 * Fixed the select system call retry compatibility with Python 2.x.
   Thanks lddubeau
 * max_connections is now a valid querystring argument for creating
   connection pools from URLs. Thanks mmaslowskicc
 * Added the UNLINK command. Thanks yozel
 * Added socket_type option to Connection for configurability.
   Thanks garlicnation
 * Lock.do_acquire now atomically sets acquires the lock and sets the
   expire value via set(nx=True, px=timeout). Thanks 23doors
 * Added 'count' argument to SPOP. Thanks AlirezaSadeghi
 * Fixed an issue parsing client_list respones that contained an '='.
   Thanks swilly22
Links

@coveralls
Copy link

Pull Request Test Coverage Report for Build 239

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 45.846%

Totals Coverage Status
Change from base Build 218: 0.0%
Covered Lines: 298
Relevant Lines: 650

💛 - Coveralls

@pyup-bot
Copy link
Contributor Author

Closing this in favor of #128

@pyup-bot pyup-bot closed this Nov 16, 2018
@NicolasLM NicolasLM deleted the pyup-update-redis-2.10.6-to-3.0.0.post1 branch November 16, 2018 01:10
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.

2 participants