lericson
432cd63ccd
Nitpick program flow of client.gets and others
2010-10-08 22:02:36 +02:00
ketralnis
8ca61197da
Add tests for CAS
2010-09-28 20:34:16 -07:00
Johan Bergström
725134931b
Fix off-by-one in key length check
...
Fixes #18
2010-08-30 13:41:34 +02:00
lericson
86f6256d3a
Fix backward compatibility for set_multi timeout.
...
Fixes #13 HOH
2010-05-27 21:54:24 +02:00
lericson
02c7681ff2
Handle NUL-byte keys in get_multi
...
Thanks to Ormod for finding, reporting and drilling down the bug.
2010-05-27 14:26:24 +02:00
lericson
2e83a68ed9
Test 127.0.0.1 rather than localhost (IPv6)
2010-05-12 01:15:12 +02:00
lericson
2f09c230a3
Fix what appears to be an obvious test failure
2010-05-10 13:24:39 +02:00
ketralnis
eb21e83e2c
Acquire/release the GIL only once for set_multi operations, and add add_multi/incr_multi operations
2010-05-10 13:11:13 +02:00
lericson
f88c8c3afe
Stop accepting time argument for delete. Fixes #1
2010-05-10 12:42:46 +02:00
lericson
92c1fbb585
Fix up docstrings for pylibmc module
2010-03-22 21:52:09 +01:00
lericson
c3215866c5
Fix get_multi with an 0-sequence.
...
Used to give weird errors like NULL return w/o exception etc. Fixes #7 .
2010-02-22 16:36:56 +01:00
lericson
8a1e5c752d
Use distutils to generate path to pylibmc in tests.
2010-01-27 13:20:45 +01:00
lericson
aff42d767b
Check for mappings in delete_multi and err out.
...
Previously, this would cause internal trickery to go wrong and call an
inner function with too many arguments, then fail. The error wouldn't
bubble up either, and a SEGV would ensue.
2010-01-27 11:41:07 +01:00
lericson
3dd7ad5fb6
Update cmemcache test to work with newer memcacheds.
2009-12-30 14:31:31 +01:00
lericson
59cc691a0d
Add support for building statically.
...
Using --gen-setup, one can create a Setup file which can then be
included in Modules/Setup.local.
2009-12-30 13:54:31 +01:00
lericson
b7d381a160
Make delete_multi return value compatible with python-memcached.
2009-12-13 21:00:39 +01:00
lericson
c5590258fb
Implement zlib compression.
2009-11-30 10:29:36 +01:00
lericson
a4e7e2cd75
Fix weird with Client.behaviors.update.
...
This would manifest itself in pylibmc setting seemingly random (but
consistently so) values for the updated behaviors.
Not sure how or why this works when the previous code didn't.
2009-11-25 12:00:04 +01:00
lericson
0f8c1e442c
Correctly check the exception raised on empty server list.
2009-11-22 14:33:00 +01:00
lericson
43729b93a8
Raise exception when no servers are given.
2009-11-18 20:25:03 +01:00
lericson
1c83ad0de2
Add specialized exception classes.
...
Useful when you need to catch certain errors like when a key isn't found
during an increment/decrement operation.
2009-11-05 19:09:09 +01:00
lericson
343286a34b
Fix empty memcached value exception bug.
...
pylibmc would produce non-error exceptions because the memcached value
pointer would be NULL, while the return code would be zero.
2009-10-31 11:22:18 +01:00
lericson
0984a270db
Added get_stats function.
...
Thanks to M0shTH8 for inspiration.
2009-10-19 14:09:08 +02:00
lericson
213e503ba5
Move cmemcache tests to main test module.
...
This also adds support for unittests, yay.
2009-09-22 00:16:59 +02:00
lericson
db1aff8129
Add tests for using the binary protocol.
2009-09-21 17:20:53 +02:00
lericson
279544a468
Report pylibmc version in tester.
2009-09-21 16:47:57 +02:00
lericson
eb2ac8744c
Increase timeout for timed test a little.
...
This test could fail on some very slow machines (my server), where
rerunning it would be fine. Hope this brings some predictability to the
test in question.
2009-09-21 15:49:06 +02:00
lericson
bc40569572
Add memcached_clone support.
2009-09-19 22:45:42 +02:00
lericson
e8817b6617
Set version in one file and one file alone.
2009-09-19 21:42:37 +02:00
lericson
2af5ca0e40
Include main tests in doctests, testing behaviors better.
2009-09-18 11:26:41 +02:00
lericson
732f181cb7
Add tests for pickling.
2009-09-08 21:43:56 +02:00
lericson
573dee9d52
Test booleans better and improve test runner.
2009-09-07 20:57:12 +02:00
lericson
fc04c61b27
Add status output to test script.
2009-07-31 21:55:30 +02:00
lericson
4e68248105
Initial import into git!
2009-07-27 16:10:43 +02:00