MDL-42071 caching Support for clustered memcached caching
commit1c0518a625257ad21913ce90d0fd94c97eb80f64
authorEric Merrill <merrill@oakland.edu>
Thu, 1 May 2014 21:00:26 +0000 (1 17:00 -0400)
committerEric Merrill <merrill@oakland.edu>
Mon, 30 Jun 2014 03:02:06 +0000 (29 23:02 -0400)
treec234ebe7d24c9adefe5975970af28ebd35522080
parent7a4832ecb990dc0a4e7339300a0b34536c91b2be
MDL-42071 caching Support for clustered memcached caching

For stores where there is a very high rate of sets compared to gets, it
is beneficial to retrieve from the local server, skipping the network
overhead, at the expense of having to set many severs when a key is set.

This patch adds a memcached option to enable clustering. When on, only
one "server" is allowed, which will be where fetches are from, while
sets/updates/deletes/purges will occur to the all the servers in the
"set server" list.

To run unit tests, define TEST_CACHESTORE_MEMCACHED_TESTSERVERS with
multiple (return delimited) servers.
cache/stores/memcached/addinstanceform.php
cache/stores/memcached/lang/en/cachestore_memcached.php
cache/stores/memcached/lib.php
cache/stores/memcached/settings.php
cache/stores/memcached/tests/memcached_test.php