Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch 'pr/520' | Andy McCurdy | 2014-08-15 | 2 | -6/+7 | |
|\ | ||||||
| * | pep8 | Andy McCurdy | 2014-08-15 | 1 | -1/+2 | |
| | | ||||||
| * | add optional "timeout" parameter to pubsub.can_read | Andy Isaacson | 2014-08-12 | 2 | -6/+6 | |
| | | ||||||
* | | pep8 | Andy McCurdy | 2014-08-14 | 1 | -1/+2 | |
| | | ||||||
* | | 2.10.32.10.3 | Andy McCurdy | 2014-08-14 | 1 | -1/+1 | |
| | | ||||||
* | | handle buffer edgecase | Josh Owen | 2014-08-13 | 1 | -1/+1 | |
|/ | ||||||
* | 2.10.22.10.2 | Andy McCurdy | 2014-08-11 | 1 | -1/+1 | |
| | ||||||
* | fix for pipelines when sending large values | Andy McCurdy | 2014-07-28 | 1 | -3/+3 | |
| | ||||||
* | bytearray didn't work with socket.recv_into in python 2.6 | Andy McCurdy | 2014-07-21 | 1 | -7/+6 | |
| | ||||||
* | cleanup and optimizations to new bytearray code | Andy McCurdy | 2014-07-21 | 1 | -23/+25 | |
| | ||||||
* | Merge branch 'master' into pr/505 | Andy McCurdy | 2014-07-21 | 2 | -18/+63 | |
|\ | | | | | | | | | Conflicts: redis/connection.py | |||||
| * | 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 | |
| | | | ||||||
| * | | check for the server closing a connection that's compatible with Python 3 | Andy McCurdy | 2014-07-06 | 1 | -2/+2 | |
| | | | | | | | | | | | | fixes #508 | |||||
| * | | Consistent option names for encoding and encoding_errors. Fixes #510 | Andy McCurdy | 2014-07-03 | 2 | -4/+25 | |
| | | | ||||||
| * | | better pack_commands algorithm with less string joining | Andy McCurdy | 2014-07-03 | 1 | -9/+13 | |
| |/ | ||||||
* | | Added support for reusing a bytearray buffer when parsing with hiredis-py 0.1.4 | tzickel | 2014-06-27 | 1 | -9/+32 | |
|/ | ||||||
* | Lock.acquire() to respect blocking_timeout argument | Grant Cox | 2014-06-19 | 1 | -2/+2 | |
| | ||||||
* | fix python3 compat | Andy McCurdy | 2014-06-16 | 1 | -2/+2 | |
| | ||||||
* | pack multiple commands in a pipeline into larger strings. | Andy McCurdy | 2014-06-16 | 2 | -7/+19 | |
| | | | | fixes #495 | |||||
* | more info on thread local storage | Andy McCurdy | 2014-06-16 | 2 | -9/+50 | |
| | ||||||
* | restore default Lock token storage, add toggle to make it thread-local | wil paredes | 2014-06-06 | 3 | -4/+24 | |
| | | | | | * add thread_local=False parameter to Lock.__init__() and StrictRedis.lock() * use thread_local to decide whether to put token in thread-local storage | |||||
* | move Lock.token attribute into thread-local storage | wil paredes | 2014-06-05 | 1 | -8/+10 | |
| | ||||||
* | Lock.release(): reorder code to avoid token overwrite | wil paredes | 2014-06-05 | 1 | -9/+7 | |
| | | | | | | * assignment to self.token was not protected by the lock, so the value could get overwritten * do_release() now has an expected_token parameter that receives the old token value * NOTE: this only fixes the issue for locks that do not have timeouts | |||||
* | 2.10.12.10.1 | Andy McCurdy | 2014-06-02 | 1 | -1/+1 | |
| | ||||||
* | need to detect READONLY errors in read_response, now send_command. real fix | Andy McCurdy | 2014-06-02 | 1 | -2/+2 | |
| | | | | for #435 | |||||
* | 2.10.02.10.0 | Andy McCurdy | 2014-06-01 | 1 | -1/+1 | |
| | ||||||
* | add a lock implementation using Lua scripts. | Andy McCurdy | 2014-06-01 | 2 | -12/+112 | |
| | ||||||
* | updated Lock class: | Andy McCurdy | 2014-06-01 | 3 | -3/+170 | |
| | | | | | * 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 | 2 | -92/+5 | |
| | ||||||
* | using repr() on a long value includes the trailing "L". use str() instead. | Andy McCurdy | 2014-05-28 | 1 | -2/+4 | |
| | | | | fixes #484 | |||||
* | Don't retry commands that fail due to a socket.timeout by default. | Andy McCurdy | 2014-05-27 | 4 | -20/+42 | |
| | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | only pass explicitly defined or socket_* options to sentinel connections. | Andy McCurdy | 2014-05-26 | 1 | -14/+43 | |
| | | | | fixed #483 | |||||
* | it's ok if max_connections is a long. | Andy McCurdy | 2014-05-26 | 1 | -9/+5 | |
| | ||||||
* | consistent naming, #446 | Andy McCurdy | 2014-05-14 | 2 | -16/+17 | |
| | ||||||
* | added socket_connect_timeout and socket_keepalive options. fixed #353 | Andy McCurdy | 2014-05-13 | 2 | -12/+50 | |
| | ||||||
* | allow cert_reqs to be a string and convert it to the appropriate SSL constant. | Andy McCurdy | 2014-05-13 | 1 | -0/+10 | |
| | ||||||
* | construct SSL connections from URLs. #446 | Andy McCurdy | 2014-05-13 | 1 | -0/+9 | |
| | ||||||
* | added the ablity to pass ssl options to client classes. #446 | Andy McCurdy | 2014-05-13 | 2 | -6/+20 | |
| | ||||||
* | cleaner 2.6 fallback code for querystring parsing on python 2.6 | Andy McCurdy | 2014-05-12 | 1 | -7/+11 | |
| | ||||||
* | add SSLConnection to package | Andy McCurdy | 2014-05-12 | 1 | -1/+2 | |
| | ||||||
* | Merge branch 'pr/446' | Andy McCurdy | 2014-05-12 | 2 | -1/+33 | |
|\ | | | | | | | | | | | 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 | 2 | -4/+42 | |
| | | ||||||
* | | string literals no longer get encoded before being send to Redis | Andy McCurdy | 2014-05-12 | 2 | -160/+184 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
* | | work around python2.6's broken urlparse implementation | Andy McCurdy | 2014-05-11 | 1 | -1/+11 | |
| | | ||||||
* | | Cleaned up URL parsing code, now returns ConnectionPool instances. | Andy McCurdy | 2014-05-11 | 3 | -79/+67 | |
| | | | | | | | | | | | | | | 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 | |||||
* | | remove debugging | Andy McCurdy | 2014-05-11 | 1 | -1/+1 | |
| | | ||||||
* | | cleanup ConnectionPool and BlockingConnectionPool. | Andy McCurdy | 2014-05-11 | 1 | -89/+32 | |
| | |