Memcached


Memcached . Memcached . Memcached .

Memcached

. Memcached . :

:

Memcached . Memcached .

Memcached . Memcached : .

: Memcached

Memcached . . Memcached . :

$ apt-get install memcached

Fedora ( ) Memcached :

$ yum install memcached

Memcached

Memcached . Memcached . . PHP .

Memcached PHP

Memcached :

Memcached

:

Memcached

Memcached . :

  • Rocket
  • W3 Total Cache
  • WP Super Cache
  • LiteSpeed Cache

Memcached

Memcached :

: Memcached PHP

Memcached . PHP Memcached .

:

Memcached . WP Total Cache .

… ( ) .

Memcached . Memcached .

Performance . General Settings .

WP Total Cache

Database Cache Object Cache Memcached . Memcached .

:

Memcached Advanced .

Database Object Advanced Settings .

Advanced Settings Database Cache .

WP Total Cache Advanced Settings

Advanced Memcached hostname:port Memcached Save Setting . (: …:)

: Memcached

Test . Test Passed .

Memcached Test

Advanced Object Cache . IP .

:

<!--?php

//Memcached simple test.

$memcache = new Memcache;

$memcache->connect('unix:///home/sys/Memcached.sock', 0) or die ("Could not connect");

$key = md5('42data'); //something unique

for ($k=0; $k<5; $k++) {

$data = $memcache->get($key);

if ($data == NULL) {

$data = array();

//generate an array of random stuff

echo "expensive query";

for ($i=0; $i<100; $i++) {

for ($j=0; $j<10; $j++) {

$data($i)($j) = 42;

}

}

$memcache->set($key,$data,0,3600);

} else {

echo "cached";

}

}

?-->

Expensive Query . .

Memcached

Memcached . .

Memcached . Memcached .

Google App Engine Microsoft Azure IBM Bluemix Memcached . Memcached .

Memcached .

Memcached

. . . Memcached .

:

  • (Page Cache): ( ) HTML CSS JS .
  • (Browser Cache): . .
  • (Object Cache): . Memcached .

Request () . . WP_Object_Cache . Memcached .

Memcached

Memcached RAM . Memcached . .

Memcached

. Memcached . :

.

. Memcached .

.

Memcached . Memcached .

Memcached

.

Memcached . .

.

Memcached . Memcached .

.

Memcached (String) (Numerical) List Set Sortedset .

Memcached . . Memcached . .

. Memcached

.

. Memcached

Memcached String Numerical .

. Memcached

.

.

. Memcached .