| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Ported patch in #52 from @harlowja to current branch. Added tests.
For the cases where the user wants to transparently
encode keys (say using urllib) before they are used
further allow a encoding function to be passed in that
will perform these types of activities (by default it
is the identity function).
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Port of erankor's PR #30 to the latest code. In that PR, the "time"
argument to delete() is removed because it is not supported by the
protocol:
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L330
And touch requires the expiry parameter due to protocol:
https://github.com/memcached/memcached/blob/master/doc/protocol.txt#L399
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Rather than always require the separate mock module,
try to use unittest.mock if it is available
Signed-off-by: Tim Orling <ticotimo@gmail.com>
|
| |/ |
|
| |
|
|
| |
Without the trailing '0', the command is invalid.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
on Python 3
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Unused since 04f1c78c13bd54050b1d2d3baa9e86d9e79b3629.
|
| | |
|
| | |
|
| | |
|
| |\
| |
| |
| |
| | |
Conflicts:
tests/test_memcache.py
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Port set_multi() to Python 3
* Port delete_multi() to Python 3
* Fix _get_server() on Python 3 when the connection to the first server
fails: encode to ASCII before calling serverHashFunction.
* Fix expect(): don't decode line on Python 3, return the raw line
* Add more unit tests
* tox now also runs unit tests
* Explicit the encoding when calling str.encode(): use 'utf-8'
* test_memcache: close sockets in tearDown()
* test_get_unknown_value(): delete the key to ensure that it doesn't exist
|
| |/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* travis: make python 3 tests voting (cannot fail anymore)
* setup.py: add Python 3 classifiers
* Encode unicode key to UTF-8: add _encode_key() method
* Add _encode_cmd() helper method to format a memcache command as a byte
string (bytes%args will only be supported in Python 3.5)
* Rewrite _map_and_prefix_keys() code converting keys
* _val_to_store_info() now accepts Unicode: Unicode is encoded to UTF-8
* _set('cas') doesn't call _val_to_store_info() anymore when it's not
needed: begin by checking if the key is in the cas_ids dictionary
* Process server reply as bytes
* _recv_value() now clears the _FLAG_COMPRESSED flag after decompressing
to simplify the code
* On Python 3, _recv_value() now decodes byte strings from UTF-8
* Simplify check_key(), _encode_key() now encodes Unicode to UTF-8
* Replace u'...' with six.u('...') in tests for Python 3.2
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
into cabrera-tox_support
Conflicts:
README.md
tests/test_setmulti.py
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds notes in the README and a tox.ini file for use with the tox
test manager.
This helps greatly towards migrating python-memcached towards python
3.3+ compatibility.
|
| |/ / |
|
| | |
| |
| |
| | |
a Please enter the commit message for your changes. Lines starting
|
| |/ |
|
| | |
|
| |
|