summaryrefslogtreecommitdiff
path: root/memcache.py
Commit message (Collapse)AuthorAgeFilesLines
* MemcachedKeyCharacterError better describes errorSean Reifschneider2014-09-211-1/+1
|
* pep8: H201 no 'except:' at least use 'except Exception:'Marc Abramowitz2014-06-091-1/+1
|
* pep8: E227 missing whitespace around bitwise or shift operatorMarc Abramowitz2014-06-091-1/+1
|
* pep8: F402 import 'pickle' from line 52 shadowed by loop variableMarc Abramowitz2014-06-091-1/+0
|
* pep8: H405 multi line docstring summary not separated with an empty lineMarc Abramowitz2014-06-091-4/+13
|
* pep8: E711 comparison to None should be 'if cond is None:'Marc Abramowitz2014-06-091-4/+4
|
* pep8: E265 block comment should start with '# 'Marc Abramowitz2014-06-091-13/+13
|
* Clean up long lines for pep8Marc Abramowitz2014-06-091-7/+8
|
* Sort imports for pep8Marc Abramowitz2014-06-091-3/+4
|
* Resolving conflicts from cabrera-py33_fixes.Sean Reifschneider2014-06-071-316/+413
|
* Complete the Python3 work!Alex Gaynor2014-05-101-1/+1
|
* Merge pull request #42 from alex/iterkeysSean Reifschneider2014-05-101-5/+5
|\ | | | | Removed usage of iterkeys for python3
| * Removed usage of iterkeys for python3Alex Gaynor2014-05-101-5/+5
| |
* | Included Python3 changes from Dustin OpreaSean Reifschneider2014-05-101-5/+19
|/ | | | From #38.
* Merge pull request #41 from alex/stringio-py3kSean Reifschneider2014-05-101-7/+4
|\ | | | | Use io.BytesIO() in favor of StringIO to be python3 friendly
| * Use io.BytesIO() in favor of StringIO to be python3 friendlyAlex Gaynor2014-05-101-7/+4
| |
* | Fixing connection-dead subscript issue.Sean Reifschneider2014-05-101-1/+1
| | | | | | | | From Dustin Oprea, part of #38.
* | Doc fix from Dustin Oprea (part of #38).Sean Reifschneider2014-05-101-1/+1
|/
* Converted print statements to use the Python3 compatible formAlex Gaynor2014-05-101-57/+77
|
* Made the "except" syntax py3 friendly.Alex Gaynor2014-05-101-20/+20
| | | Note that this makes the minimum supported version be 2.6
* Adding Changelog for touch()Sean Reifschneider2014-02-081-1/+1
|
* Merge pull request #28 from erankor/masterSean Reifschneider2014-02-081-6/+22
|\ | | | | add support for touch command
| * add support for touch commanderan.kornblau2014-01-281-6/+22
| |
* | Allow specifying an empty server list.Glenn Maynard2014-02-061-0/+3
|/ | | | | | | | | | | | | | | | | | If the server list is empty, behave the same as if all servers are down. This allows clients to not care whether memcache is actually in use: mc = memcache.Client(get_my_memcache_servers()) mc.get('cache') If you're not using memcache at all, get_my_memcache_servers() just returns [], and the client code doesn't need to know the difference. Previously, it would fail: >>> mc = memcache.Client([]) >>> mc.get('x') File "memcache.py", line 353, in _get_server server = self.buckets[serverhash % len(self.buckets)] ZeroDivisionError: integer division or modulo by zero
* Changing unknown flags on GET to raise ValueError.Sean Reifschneider2013-08-251-0/+1
|
* Reverting an accidental key-space change.Sean Reifschneider2013-08-191-1/+1
|
* Alowing SERVER_MAX* to be set after import.Sean Reifschneider2013-08-121-3/+6
|
* For 1.53 release.release-1.53Sean Reifschneider2013-06-071-1/+1
|
* Marking connection dead in readline().Sean Reifschneider2013-06-031-9/+4
| | | | Also fixing a docstring test.
* Fixing AttributeError raised during set_multi.Sean Reifschneider2013-06-021-4/+10
|
* Fixing readability of set_multi docstrings.Sean Reifschneider2013-06-021-21/+34
|
* Updating version number.release-1.52Sean Reifschneider2013-06-021-1/+1
|
* Reverting back to re.match for key checking.Sean Reifschneider2013-06-021-15/+4
|
* If Python <2.6, use regex to test keys.Sean Reifschneider2013-06-021-6/+17
|
* For 1.51 release.release-1.51Sean Reifschneider2013-05-061-1/+1
|
* Changing check_key to check_keys.release-1.49Sean Reifschneider2013-05-061-3/+3
|
* check_key disabling and performance improvements.Sean Reifschneider2013-05-041-11/+20
| | | | | | | | | | * Client() now takes a "check_key" option, which defaults to True. If False, it disables the checking of keys to ensure they have acceptable size and are composed of non-control characters. Suggested by Ben Hoyt. * Converting control character checking of keys based on performance testing of alternatives by Ben Hoyt.
* Converting unicode test from using u''.Sean Reifschneider2013-04-171-3/+4
|
* Set after server dies raises AttributeError.Sean Reifschneider2013-03-301-2/+2
|
* incr/decr return None on server connection fail.Sean Reifschneider2013-03-291-2/+2
|
* Adding patch for IPv6 connection string.Sean Reifschneider2013-03-281-0/+14
|
* * Bug #974632: _ConnectionDeadError sometimes was escaping the get/setSean Reifschneider2012-04-111-14/+24
| | | | | | | | | code. This should return to readline() not raising an exception, except in the case that it's called from the get/set(). Report from Gary Poster, proposed patch by Brad Crittenden. Misc fixes by Brad Crittenden: fixing a docstring, if "port" is set to any false-like value it will default to 11211.
* Bug #887765: Interrupted connection to memcache server can causeSean Reifschneider2011-11-291-7/+26
| | | | | | | | inconsistencies. Added "flush_on_reconnect" (defaults to off) to Client() which will cause a client that has lost connection to a server and then reconnects to flush the cache on the reconnect so that it doesn't get old values from that server. Patch by Daniel Benamy.
* Bug #745633: Values of maximum size are not storedSean Reifschneider2011-11-271-3/+14
| | | | | | | | API inconsistency, max value length was tested for <= while max KEY length was <. So I picked that keys and values *LONGER* than the specified max value are what is used, and added documentation and tests to that effect. The test for max value tested that length plus 4, so I've changed that to be that value plus 1.
* Adding commented-out timed delete test.Sean Reifschneider2011-11-271-2/+15
|
* * Bug #713451: server.expect("END") needs to be in a finally blockSean Reifschneider2011-11-271-2/+4
| | | | | Expect an "END" when the _recv_value() raises an exception. Patch by Jay Farrimond.
* Reverting patch that allows spaces in key.Sean Reifschneider2011-11-271-1/+1
|
* Bug: #741090: cas cache can grow unbounded. Default now is that theSean Reifschneider2011-11-271-3/+19
| | | | | | | cache is not used, unless the "Client()" object is created with "cache_cas=True". In that case, you need to have your own cas clearing code, a simple one would be to use Client().reset_cas() to completely clear the cas_ids cache. Problem pointed out by Shaun Cutts.
* Bug: #794456: Spaces in memcache keynamesSean Reifschneider2011-11-271-1/+1
| | | | Now allow spaces in keys. Proposed by cpaetzel.
* Bug #728359: Make python-memcache work on memcache restarts.Sean Reifschneider2011-11-271-46/+93
| | | | | Patch by Tarek Ziade', reviewed and further patches submitted by Hugo Beauze'e-Luysse and Neganov Alexandr.