Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch 'master' of github.com:andymccurdy/redis-py | Andy McCurdy | 2015-01-02 | 1 | -3/+8 | |
|\ | ||||||
| * | Allow delay between watch errors | Joshua Harlow | 2014-12-08 | 1 | -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 pep8 | Hendrik Muhs | 2014-12-04 | 1 | -1/+2 | |
| | | ||||||
| * | UnicodeDecodeErrorfix unicode encode error when using pipeline in ↵ | Hendrik Muhs | 2014-12-04 | 1 | -3/+3 | |
| | | | | | | | | combination with msgpack and lua | |||||
* | | better handling of the pub/sub workerthread's stop behavior | Andy McCurdy | 2015-01-02 | 1 | -20/+29 | |
|/ | | | | | properly unsubscribes and cleans up the connection now. also allows callbacks to call thread.stop() without errors. | |||||
* | docstring | Andy McCurdy | 2014-08-15 | 1 | -3/+9 | |
| | ||||||
* | add optional "timeout" parameter to pubsub.can_read | Andy Isaacson | 2014-08-12 | 1 | -4/+4 | |
| | ||||||
* | Merge pull request #501 from jettify/master | Andy McCurdy | 2014-07-06 | 1 | -4/+24 | |
|\ | | | | | Added bitpos command | |||||
| * | bitpos command implementation | Nickolai Novik | 2014-06-21 | 1 | -4/+24 | |
| | | ||||||
* | | Consistent option names for encoding and encoding_errors. Fixes #510 | Andy McCurdy | 2014-07-03 | 1 | -4/+14 | |
|/ | ||||||
* | pack multiple commands in a pipeline into larger strings. | Andy McCurdy | 2014-06-16 | 1 | -7/+3 | |
| | | | | fixes #495 | |||||
* | more info on thread local storage | Andy McCurdy | 2014-06-16 | 1 | -5/+25 | |
| | ||||||
* | restore default Lock token storage, add toggle to make it thread-local | wil paredes | 2014-06-06 | 1 | -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 McCurdy | 2014-06-01 | 1 | -4/+18 | |
| | ||||||
* | updated Lock class: | Andy McCurdy | 2014-06-01 | 1 | -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 module | Andy McCurdy | 2014-05-31 | 1 | -92/+1 | |
| | ||||||
* | Don't retry commands that fail due to a socket.timeout by default. | Andy McCurdy | 2014-05-27 | 1 | -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, #446 | Andy McCurdy | 2014-05-14 | 1 | -4/+4 | |
| | ||||||
* | added socket_connect_timeout and socket_keepalive options. fixed #353 | Andy McCurdy | 2014-05-13 | 1 | -1/+7 | |
| | ||||||
* | added the ablity to pass ssl options to client classes. #446 | Andy McCurdy | 2014-05-13 | 1 | -2/+14 | |
| | ||||||
* | Merge branch 'pr/446' | Andy McCurdy | 2014-05-12 | 1 | -0/+0 | |
|\ | | | | | | | | | | | Conflicts: redis/client.py redis/connection.py | |||||
| * | fixing coding style | Oran Agra | 2014-03-25 | 1 | -2/+2 | |
| | | | | | | | | E127 continuation line over-indented for visual indent | |||||
| * | fix line too long (coding style test) | Oran Agra | 2014-03-23 | 1 | -1/+3 | |
| | | ||||||
| * | add SSL support | Oran Agra | 2014-03-22 | 1 | -3/+20 | |
| | | ||||||
* | | string literals no longer get encoded before being send to Redis | Andy McCurdy | 2014-05-12 | 1 | -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 McCurdy | 2014-05-11 | 1 | -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 McCurdy | 2014-05-11 | 1 | -19/+8 | |
|\ \ | | | | | | | | | | | | | Conflicts: tests/test_connection_pool.py | |||||
| * | | pep8 fixes | wil paredes | 2014-02-09 | 1 | -1/+2 | |
| | | | ||||||
| * | | add from_url() classmethod to ConnectionPool and BlockingConnectionPool, add ↵ | wil paredes | 2014-02-09 | 1 | -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 McCurdy | 2014-05-10 | 1 | -11/+11 | |
| | | | | | | | | fixes #474. | |||||
* | | Implement the CONFIG REWRITE command | Keith Ainsworth | 2014-05-07 | 1 | -0/+4 | |
| | | | | | | | | http://redis.io/commands/config-rewrite | |||||
* | | Merge branch 'master' of github.com:andymccurdy/redis-py | Andy McCurdy | 2014-05-06 | 1 | -1/+1 | |
|\ \ | ||||||
| * \ | Merge pull request #431 from marcelometal/master | Andy McCurdy | 2014-05-07 | 1 | -1/+1 | |
| |\ \ | | | | | | | | | Fixed typo in client.py | |||||
| | * | | Fixed typo in client.py | Marcelo Jorge Vieira | 2014-01-29 | 1 | -1/+1 | |
| | |/ | ||||||
* | | | Added support for SENTINEL MONITOR, SENTINEL REMOVE, and SENTINEL SET commands. | Andy McCurdy | 2014-05-06 | 1 | -0/+13 | |
|/ / | | | | | | | Fixes #424 | |||||
* | | comments | Andy McCurdy | 2014-05-06 | 1 | -0/+1 | |
| | | ||||||
* | | Merge branch 'pr/432' | Andy McCurdy | 2014-05-06 | 1 | -2/+6 | |
|\ \ | ||||||
| * | | When line is not splittable, add to a __raw__ key | Pedro Larroy | 2014-01-30 | 1 | -2/+6 | |
| |/ | ||||||
* | | Merge branch 'pr/464' | Andy McCurdy | 2014-05-06 | 1 | -2/+2 | |
|\ \ | ||||||
| * | | Fix getset docstring | Choongmin Lee | 2014-04-24 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | The old docstring was incorrect. See http://redis.io/commands/GETSET for more information. | |||||
* | | | add the SENTINEL MASTER <service_name> info command | Andy McCurdy | 2014-05-06 | 1 | -1/+8 | |
| | | | ||||||
* | | | fix sentinel state parsing, fixes #462. | Andy McCurdy | 2014-05-06 | 1 | -4/+17 | |
| | | | ||||||
* | | | any response for BGSAVE and BGREWRITEAOF are fine - any error will be an ↵ | Andy McCurdy | 2014-05-03 | 1 | -5/+1 | |
| | | | | | | | | | | | | exception | |||||
* | | | better performance of pack_command and send_packed_command when dealing with ↵ | Andy McCurdy | 2014-04-29 | 1 | -2/+2 | |
|/ / | | | | | | | large values | |||||
* | | added lexicographical sorted set commands | Andy McCurdy | 2014-04-23 | 1 | -2/+34 | |
| | | ||||||
* | | mostly fixes #456. there's still an issue w/ hiredis and multi-bulk replies | Andy McCurdy | 2014-04-10 | 1 | -6/+9 | |
| | | ||||||
* | | sentinel info should be a string in python3 | Andy McCurdy | 2014-04-10 | 1 | -0/+1 | |
| | | ||||||
* | | pull the encoding attrs directly off a connection. fixes #455 | Andy McCurdy | 2014-04-10 | 1 | -4/+7 | |
| | | ||||||
* | | Make sure we know the SHA of scripts before pipeline execution. Fixes #459 | Andy McCurdy | 2014-04-09 | 1 | -1/+10 | |
| | | ||||||
* | | Fix #438, OBJECT commands on invalid keys return None now. | Andy McCurdy | 2014-04-08 | 1 | -1/+1 | |
| | |