Commit graph

6 commits

Author SHA1 Message Date
adam
6d90f4c441 py-redis: updated to 3.1.0
3.1.0:
* Connection URLs must have one of the following schemes:
  redis://, rediss://, unix://.
* Fixed an issue with retry_on_timeout logic that caused some TimeoutErrors
  to be retried.
* Added support for SNI for SSL.
* Fixed ConnectionPool repr for pools with no connections.
* Fixed GEOHASH to return a None value when specifying a place that
  doesn't exist on the server.
* Fixed XREADGROUP to return an empty dictionary for messages that
  have been deleted but still exist in the unacknowledged queue.
* Added an owned method to Lock objects. owned returns a boolean
  indicating whether the current lock instance still owns the lock.
* Allow lock.acquire() to accept an optional token argument. If
  provided, the token argument is used as the unique value used to claim
  the lock.
* Added a reacquire method to Lock objects. reaquire attempts to renew
  the lock such that the timeout is extended to the same value that the
  lock was initially acquired with.
* Stream names found within XREAD and XREADGROUP responses now properly
  respect the decode_responses flag.
* XPENDING_RANGE now requires the user the specify the min, max and
  count arguments. Newer versions of Redis prevent ount from being
  infinite so it's left to the user to specify these values explicitly.
* ZADD now returns None when xx=True and incr=True and an element
  is specified that doesn't exist in the sorted set. This matches
  what the server returns in this case.
* Added client_kill_filter that accepts various filters to identify
  and kill clients.
* Fixed a race condition that occurred when unsubscribing and
  resubscribing to the same channel or pattern in rapid succession.
* Added a LockNotOwnedError that is raised when trying to extend or
  release a lock that is no longer owned. This is a subclass of LockError
  so previous code should continue to work as expected.
* Fixed a bug in GEORADIUS that forced decoding of places without
  respecting the decode_responses option.
2019-01-29 10:17:47 +00:00
adam
151a768fae py-redis: updated to 3.0.1
* 3.0.1
    * Fixed regression with UnixDomainSocketConnection caused by 3.0.0.
    * Fixed an issue with the new asynchronous flag on flushdb and flushall.
    * Updated Lock.locked() method to indicate whether *any* process has
      acquired the lock, not just the current one. This is in line with
      the behavior of threading.Lock.
* 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.
  OTHER CHANGES
    * Added missing DECRBY command.
    * 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.
    * Added support for the 'asynchronous' argument to FLUSHDB and FLUSHALL
      commands.
    * Added support for the BITFIELD command.
    * Improved performance on pipeline requests with large chunks of data.
    * Fixed test suite to not fail if another client is connected to the
      server the tests are running against.
    * Added support for SWAPDB.
    * Added support for all STREAM commands.
    * SHUTDOWN now accepts the 'save' and 'nosave' arguments.
    * Added support for ZPOPMAX, ZPOPMIN, BZPOPMAX, BZPOPMIN.
    * Added support for the 'type' argument in CLIENT LIST.
    * Added support for CLIENT PAUSE.
    * Added support for CLIENT ID and CLIENT UNBLOCK.
    * GEODIST now returns a None value when referencing a place that does
      not exist.
    * Added a ping() method to pubsub objects.
    * Fixed a bug with keys in the INFO dict that contained ':' symbols.
    * 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.
    * Fixed the select system call retry compatibility with Python 2.x.
    * max_connections is now a valid querystring argument for creating
      connection pools from URLs.
    * Added the UNLINK command.
    * Added socket_type option to Connection for configurability.
    * Lock.do_acquire now atomically sets acquires the lock and sets the
      expire value via set(nx=True, px=timeout).
    * Added 'count' argument to SPOP.
    * Fixed an issue parsing client_list respones that contained an '='.
2018-12-13 19:37:48 +00:00
wiz
ef141a6b79 Reset maintainer 2017-09-16 19:26:41 +00:00
adam
1af9f7dedb Fixed BUILD_DEPENDS typo 2017-08-17 20:50:37 +00:00
adam
acafb75c6a 2.10.6
* Various performance improvements. Thanks cjsimpson
* Fixed a bug with SRANDMEMBER where
* Added HSTRLEN command. Thanks Alexander Putilin
* Added the TOUCH command. Thanks Anis Jonischkeit
* Remove unnecessary calls to the server when registering Lua scripts.
  Thanks Ben Greenberg
* SET's EX and PX arguments now allow values of zero. Thanks huangqiyin
* Added PUBSUB {CHANNELS, NUMPAT, NUMSUB} commands. Thanks Angus Pearson
* PubSub connections that that encounter `InterruptedError`s now
  retry automatically. Thanks Carlton Gibson and Seth M. Larson
* LPUSH and RPUSH commands run on PyPy now correctly returns the number
  of items of the list. Thanks Jeong YunWon
* Added support to automatically retry socket EINTR errors. Thanks
  Thomas Steinacher
* PubSubWorker threads started with `run_in_thread` are now daemonized
  so the thread shuts down when the running process goes away. Thanks
  Keith Ainsworth
* Added support for GEO commands. Thanks Pau Freixes, Alex DeBrie and
  Abraham Toriz
* Made client construction from URLs smarter. Thanks Tim Savage
* Added support for CLUSTER * commands. Thanks Andy Huang
* The RESTORE command now accepts an optional `replace` boolean.
  Thanks Yoshinari Takaoka
* Attempt to connect to a new Sentinel if a TimeoutError occurs. Thanks
  Bo Lopker
* Fixed a bug in the client's `__getitem__` where a KeyError would be
  raised if the value returned by the server is an empty string.
  Thanks Javier Candeira.
* Socket timeouts when connecting to a server are now properly raised
  as TimeoutErrors.
2017-08-17 13:15:50 +00:00
adam
13b186dead PkgSrc:
renamed py-redis-py to py-redis

2.10.5
    * Allow URL encoded parameters in Redis URLs. Characters like a "/" can
      now be URL encoded and redis-py will correctly decode them.
    * Added support for the WAIT command.
    * Better shutdown support for the PubSub Worker Thread. It now properly
      cleans up the connection, unsubscribes from any channels and patterns
      previously subscribed to and consumes any waiting messages on the socket.
    * Added the ability to sleep for a brief period in the event of a
      WatchError occuring.
    * Fixed a bug with pipeline error reporting when dealing with characters
      in error messages that could not be encoded to the connection's
      character set.
    * Fixed a bug in Sentinel connections that would inadvertantly connect
      to the master when the connection pool resets.
    * Better timeout support in Pubsub get_message.
    * Fixed a bug with the HiredisParser that would cause the parser to
      get stuck in an endless loop if a specific number of bytes were
      delivered from the socket. This fix also increases performance of
      parsing large responses from the Redis server.
    * Added support for ZREVRANGEBYLEX.
    * ConnectionErrors are now raised if Redis refuses a connection due to
      the maxclients limit being exceeded.
    * max_connections can now be set when instantiating client instances.
2017-07-14 11:36:27 +00:00