20 Commits

Author SHA1 Message Date
lericson
16e964e571 Add support for the binary protocol.
Also removed two behaviors from public exposure as they're better off
controlled by `_pylibmc`. (USE_UDP and BINARY_PROTOCOL.)
2009-09-21 17:16:43 +02:00
lericson
7b2f9f88dd Simplify behavior setting method. 2009-09-21 16:47:16 +02:00
lericson
a14a2d7de9 Improve error checking for adding servers. 2009-09-21 16:43:00 +02:00
lericson
aa74c13d84 Improve error checking for increment and decrement. 2009-09-21 16:42:37 +02:00
lericson
a634ed7140 Cast keys to const in get_multi.
This is because libmemcached 0.32 wants it that way.
2009-09-21 15:46: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
9fb94c12c0 Properly cast types in get_behaviors. 2009-09-18 11:23:25 +02:00
lericson
391878b095 Simplify set_behaviors. 2009-09-18 11:22:54 +02:00
lericson
732f181cb7 Add tests for pickling. 2009-09-08 21:43:56 +02:00
lericson
ab407b51c7 Handle errors in bool value parsing better. 2009-09-08 16:15:49 +02:00
lericson
f567323f04 Use Py_ssize_t as much as possible.
This fixes issues with x86_64 builds, which would cause very strange
errors to occur.
2009-09-07 23:55:37 +02:00
lericson
2c4d9acb3b Fix an obvious memory leak 2009-09-07 02:22:55 +02:00
lericson
3c7fc65e38 Rework flow of set, replace et al.
This should make it easier to read as usual, but should also fix a
potential memory leak.
2009-09-07 02:19:31 +02:00
lericson
c023d18a20 Rework flow of multi_get.
This should fix some corner-case bugs, and makes the code read a lot
better.
2009-09-06 01:34:15 +02:00
lericson
c3d46783d3 Properly set error on success status. 2009-09-05 17:34:26 +02:00
lericson
4991469ef9 Remove nonsensical cast to same type. 2009-09-05 17:33:22 +02:00
lericson
5ebad6db14 Fix early DECREF 2009-09-05 02:12:11 +02:00
lericson
5fd68b34c7 Merge patch from amix
Add support for bool values, use ssize_t in some places (not sure about
this) and some other stuff.
2009-09-05 02:08:04 +02:00
lericson
4e68248105 Initial import into git! 2009-07-27 16:10:43 +02:00