Releases: linsomniac/python-memcached
1.62 delete() returns 0 for NOT_FOUND or server error (consistent with docstring)
delete() return value now is 1 for "DELETED" and 0 for "NOT_FOUND" or server error. (Nick Pope PR #190)
This is consistent with the docstring.
1.61 Fixing date in Changelog
This is a documentation-only fix, fixing the date in the Changelog in the 1.60 release. See that release for the full set of changes.
1.60: Many bug-fixes (2023)
- Allow to use a datetime.timedelta parameter for Client.set (PR from Theo Massard)
- Fix cmemcahe_hash 0 values being translated to 1 (PR from Chow Loong Jin)
- Fix tuple key support in multi methods (PR from Sergii Mikhtoniuk) #154
- Add support for default value in get (PR from Jakub Szafrański)
- test_memcache.py: try import unittest.mock (PR from Tim Orling)
- Use == as suggested by Python 3.8 (PR from @za)
- Decoding in slab funcs, replacing "1" with "True" in while. #175
- Tell PyPI to parse README as markdown (PR from @MartinThoma) #168
- test_memcache.py: try import unittest.mock (PR from @moto-timo) #172
- Removed Python 2.7 from setup.cfg, adding 3.8-3.12
- Add support for default value in get() (PR from @samupl) #158
- Fix tuple key support in multi methods (regression in 1.55). (PR from @sergiimk) #155
- Fix cmemcahe_hash 0 values being translated to 1. For example "ob" would hash to 0 and then get converted to 1. Looks like this dated back to 2009, the original code we imported for that hash function. (PR from @hyperair) #152
- Removing six.PY2/3 conditionals
- Removing "time" from delete and making expiry mandatory in touch. (port of @erankor's PR in #30 )
- Added quit() method. This method sends the 'quit' command to the servers and then closes the connections, reducing the number of TIME_WAIT sockets hanging around the OS. (PR from @userrl) #15
- Allow to use a datetime.timedelta parameter for Client.set (PR from @tbobm) #146
- Allow keys to be encoded before use. (Port of PR in #52 from @harlowja)
- Removing historic python 2to3 code and deprecated socket.error (for OSError). (PR from @pgajdos) #186
- Updating to the latest PSF license
Many bug-fixes.
-
Added testing for Python 3.5 and 3.6 (PR from Tim Graham) #110, #131
-
Fixed typos in docstrings (PR from Romuald Brunet, reviewed by Tim
Graham) #105 -
Removing Python 2.6, 3.2, and 3.3 testing (PR from Tim Graham) #115, #116
-
Removing unnecessary parens in return statements (PR from Tim Graham)
#113 -
Remove unused _has_unicode/_str_cls vars (PR from Tim Graham) #111
-
Add flake8 testing and cleanups (PR from Tim Graham, cleanups from Sean
Reifschneider) #112 -
Fixed storing non-ASCII values on Python 2 and binary values on Python 3
(PR from Nicolas Noé) #135 -
Fixed touch(..., time=0) command (PR from Nicolas Noé) #137
Fixing performance regression on Python 2
This version fixes performance issues with pickling in Python 2 by reverting to cPickle in that case. Also includes slab stats and removal of the "time" argument to delete when it is not specifically set (this has been deprecated in the memcache server).
1.57: Fix for ValueError on storing boolean.
release-1.57 For 1.57 release.
Python3 patches included.
1.55 I hadn't updated the version string in memcache.py, so I've released a new version with that rolled and fixed.
1.55: More Python3 patches.
This release incorporates more Python 3 patches. Thanks!
release-1.54
For 1.54 release.