summaryrefslogtreecommitdiff
path: root/redis/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #665 from ohadpartuck/connection_pool_max_connectionsAndy McCurdy2015-11-021-2/+4
|\ \ \ | | | | | | | | adding max_connections option to StrictRedis Class
| * | | adding max_connections option to StrictRedis ClassOhad Perry2015-10-131-2/+4
| | | |
* | | | -Add CHANGES message.Christian Bodt2015-10-201-3/+3
| | | | | | | | | | | | | | | | -Rename variables for coherence
* | | | -added zrevrangebylexChristian Bodt2015-10-201-0/+16
|/ / /
* | | Avoid needlessly making temporary lists to merge dict(s) togetherJoshua Harlow2015-09-271-1/+2
|/ /
* | support multiple keys for pfcount callChris Wilkes2015-05-221-3/+3
| |
* | Add WAIT command for Redis synchronous replicationeshizhan2015-01-151-0/+9
|/ | | | | ref1: https://github.com/antirez/redis/blob/unstable/src/replication.c#L1783, at SYNCHRONOUS REPLICATION ref2: http://antirez.com/news/66 This command for Redis-3.0.0 and above now.
* Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2015-01-021-3/+8
|\
| * Allow delay between watch errorsJoshua Harlow2014-12-081-0/+4
| | | | | | | | | | | | | | | | | | When a watcher error occurs (due to some key being watched being mutated) the current behavior is to immediately try again. To avoid the thundering herd problem a delay is nice to provide to avoid these situations by introducing a sleep period between these types of failures.
| * fix pep8Hendrik Muhs2014-12-041-1/+2
| |
| * UnicodeDecodeErrorfix unicode encode error when using pipeline in ↵Hendrik Muhs2014-12-041-3/+3
| | | | | | | | combination with msgpack and lua
* | better handling of the pub/sub workerthread's stop behaviorAndy McCurdy2015-01-021-20/+29
|/ | | | | properly unsubscribes and cleans up the connection now. also allows callbacks to call thread.stop() without errors.
* docstringAndy McCurdy2014-08-151-3/+9
|
* add optional "timeout" parameter to pubsub.can_readAndy Isaacson2014-08-121-4/+4
|
* Merge pull request #501 from jettify/masterAndy McCurdy2014-07-061-4/+24
|\ | | | | Added bitpos command
| * bitpos command implementationNickolai Novik2014-06-211-4/+24
| |
* | Consistent option names for encoding and encoding_errors. Fixes #510Andy McCurdy2014-07-031-4/+14
|/
* pack multiple commands in a pipeline into larger strings.Andy McCurdy2014-06-161-7/+3
| | | | fixes #495
* more info on thread local storageAndy McCurdy2014-06-161-5/+25
|
* restore default Lock token storage, add toggle to make it thread-localwil paredes2014-06-061-2/+8
| | | | | * add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage
* add a lock implementation using Lua scripts.Andy McCurdy2014-06-011-4/+18
|
* updated Lock class:Andy McCurdy2014-06-011-2/+8
| | | | | * now uses unique string tokens to claim lock ownership * added extend() method to extend the timeout on an already acquired lock
* move Lock class to it's own moduleAndy McCurdy2014-05-311-92/+1
|
* Don't retry commands that fail due to a socket.timeout by default.Andy McCurdy2014-05-271-7/+17
| | | | | | | | | | | | | | | | | | | | Users now have the ability about how socket.timeout errors are handled. Previously socket.timeout errors were handled just like any other socket error in that the command would be retried once. This createed a potential race condition when the client sends a command to a busy Redis server that can't reply faster than the client's `socket_timeout` option. In this case, the server will still eventually process the command. There's now a `retry_on_timeout` option that's set to False by default. If `retry_on_timeout` is False, any socket.timeout error will raise a TimeoutError exception. If `retry_on_timeout` is set to True, the client will retry executing the command once just like other socket.error exceptions. TODO: Write better tests for this code. TODO: Much of this logic could/should be moved to the ConnectionPool or Connection objects. Fixes #261
* consistent naming, #446Andy McCurdy2014-05-141-4/+4
|
* added socket_connect_timeout and socket_keepalive options. fixed #353Andy McCurdy2014-05-131-1/+7
|
* added the ablity to pass ssl options to client classes. #446Andy McCurdy2014-05-131-2/+14
|
* Merge branch 'pr/446'Andy McCurdy2014-05-121-0/+0
|\ | | | | | | | | | | Conflicts: redis/client.py redis/connection.py
| * fixing coding styleOran Agra2014-03-251-2/+2
| | | | | | | | E127 continuation line over-indented for visual indent
| * fix line too long (coding style test)Oran Agra2014-03-231-1/+3
| |
| * add SSL supportOran Agra2014-03-221-3/+20
| |
* | string literals no longer get encoded before being send to RedisAndy McCurdy2014-05-121-150/+141
| | | | | | | | | | | | | | | | | | | | | | | | previously all pieces of a command, including the command name and literal options to it (such as "WITHSCORES" on ZSET commands) would get encoded. this works fine on utf-8, but other encodings like utf-16 break. a new Token class has been introduced that command names and literal options get wrapped. the encoder falls back to the latin-1 encoding for these literals as they are all ascii. fixes #430
* | Cleaned up URL parsing code, now returns ConnectionPool instances.Andy McCurdy2014-05-111-10/+16
| | | | | | | | | | | | | | StrictRedis.from_url() now creations a connection pool instance and passes that as the connection_pool argument to the client class. Cleaned up the test suite for URL parsing and BlockingConnectionPool tests
* | Merge branch 'pr/436'Andy McCurdy2014-05-111-19/+8
|\ \ | | | | | | | | | | | | Conflicts: tests/test_connection_pool.py
| * | pep8 fixeswil paredes2014-02-091-1/+2
| | |
| * | add from_url() classmethod to ConnectionPool and BlockingConnectionPool, add ↵wil paredes2014-02-091-19/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ability to parse UNIX domain socket URLs * add redis.connection.parse_url() * moved code from StrictRedis.from_url() to here * add ability to parse UNIX domain socket URLs * return keyword args to pass to StrictRedis.__init__() * StrictRedis.from_url() - call parse_url() to get keyword args * add classmethod from_url() to ConnectionPool and BlockingConnectionPool * get keyword args from parse_url() * touch up keyword args from StrictRedis format for connection pool * tests/test_connection_pool.py * add from_url() tests for ConnectionPool and BlockingConnectionPool * add from_url() tests for a single Redis client object
* | *SCAN cursor values are now longs (ints on Python3) rather than strings.Andy McCurdy2014-05-101-11/+11
| | | | | | | | fixes #474.
* | Implement the CONFIG REWRITE commandKeith Ainsworth2014-05-071-0/+4
| | | | | | | | http://redis.io/commands/config-rewrite
* | Merge branch 'master' of github.com:andymccurdy/redis-pyAndy McCurdy2014-05-061-1/+1
|\ \
| * \ Merge pull request #431 from marcelometal/masterAndy McCurdy2014-05-071-1/+1
| |\ \ | | | | | | | | Fixed typo in client.py
| | * | Fixed typo in client.pyMarcelo Jorge Vieira2014-01-291-1/+1
| | |/
* | | Added support for SENTINEL MONITOR, SENTINEL REMOVE, and SENTINEL SET commands.Andy McCurdy2014-05-061-0/+13
|/ / | | | | | | Fixes #424
* | commentsAndy McCurdy2014-05-061-0/+1
| |
* | Merge branch 'pr/432'Andy McCurdy2014-05-061-2/+6
|\ \
| * | When line is not splittable, add to a __raw__ keyPedro Larroy2014-01-301-2/+6
| |/
* | Merge branch 'pr/464'Andy McCurdy2014-05-061-2/+2
|\ \
| * | Fix getset docstringChoongmin Lee2014-04-241-2/+2
| | | | | | | | | | | | | | | The old docstring was incorrect. See http://redis.io/commands/GETSET for more information.
* | | add the SENTINEL MASTER <service_name> info commandAndy McCurdy2014-05-061-1/+8
| | |
* | | fix sentinel state parsing, fixes #462.Andy McCurdy2014-05-061-4/+17
| | |
* | | any response for BGSAVE and BGREWRITEAOF are fine - any error will be an ↵Andy McCurdy2014-05-031-5/+1
| | | | | | | | | | | | exception