Select Page

Memcache

There is a memcached cluster available to the web server, consisting of four machines:

  • 10.0.0.10
  • 10.0.0.20
  • 10.0.0.30
  • 10.0.0.40
They use the standard port number, so can be initialised with the following code:

[php]
$mc = new Memcached();
$mc->addServer(‘10.0.0.10’, 11211);
$mc->addServer(‘10.0.0.20’, 11211);
$mc->addServer(‘10.0.0.30’, 11211);
$mc->addServer(‘10.0.0.40’, 11211);
[/php]

The cluster is currently in use on the gallery sites to hold the image and gallery counts, as well as network-wide totals.