Permalink
Browse files

register const for ketama-hashing behaviour, which is already support…

…ed by libmemcached
  • Loading branch information...
RJ committed Feb 2, 2009
1 parent 9dab7bc commit fc7cd3ebcce396aa8e76c81327b14224a129cefb
Showing with 1 addition and 0 deletions.
  1. +1 −0 php_memcached.c
View
@@ -2483,6 +2483,7 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
REGISTER_MEMC_CLASS_CONST_LONG(OPT_DISTRIBUTION, MEMCACHED_BEHAVIOR_DISTRIBUTION);
REGISTER_MEMC_CLASS_CONST_LONG(DISTRIBUTION_MODULA, MEMCACHED_DISTRIBUTION_MODULA);
REGISTER_MEMC_CLASS_CONST_LONG(DISTRIBUTION_CONSISTENT, MEMCACHED_DISTRIBUTION_CONSISTENT);
+ REGISTER_MEMC_CLASS_CONST_LONG(DISTRIBUTION_KETAMA_WEIGHTED, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_BUFFER_WRITES, MEMCACHED_BEHAVIOR_BUFFER_REQUESTS);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_BINARY_PROTOCOL, MEMCACHED_BEHAVIOR_BINARY_PROTOCOL);
REGISTER_MEMC_CLASS_CONST_LONG(OPT_NO_BLOCK, MEMCACHED_BEHAVIOR_NO_BLOCK);

0 comments on commit fc7cd3e

Please sign in to comment.