mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
7a4832e
commit 1c0518a
Showing
5 changed files
with
410 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.