php-memcached-dev/php-memcached — pull request #38 by mhagstrand (2012-10-05 07:07:35+00:00)
Title: Session replicas for issue #28

This adds session options for MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, and MEMCACHED_BEHAVIOR_KETAMA.

memcached.sess_binary must be enabled for session replicas to work.

If memcached.sess_remove_failed is enabled and memcached.sess_num_replicas is a positive value, php-memcached will be able to read the session from another memcache server if a memcache server fails. However, if the failed memcache server becomes available again, php-memcached will read the session from the restored failed memcache server which could have old data or no data at all.