Native supports using Memcached cache, but needs to be set in the configuration file.
Put the code on (app/etc/local. xml ):
<Global>
...
<Cache>
<Auto_refresh_fast_cache> true </auto_refresh_fast_cache>
<Backend> memcached </backend>
<Backend_options>
<Servers>
<Server>
<Host> localhost <Port> 11211 </port>
<Persistent> true </persistent>
<Weight> 1 </weight>
<Timeout> 1 </timeout>
<Retry_interval> 15 </retry_interval>
</Server>
</Servers>
</Backend_options>
</Cache>
...
</Global>
The most attractive part of Memcached is its distribution, which can achieve load balancing and ease the problem of instantaneous traffic. Since it is distributed, you can certainly use multiple servers. Under the servers node, you can add multiple server nodes to implement the configuration of multiple servers.
If Memcached is enabled in the background before Memcached is set, an error may occur when you access the website after Memcached is enabled. This is caused by a different default Cache format than Memcached. In general, you only need to clear the files in the var/cache directory to solve this problem.
Although Memcached can improve the running speed to some extent (because it saves the cache to the memory), its main function is distributed load balancing. Memcached is unnecessary if the site has low instantaneous access traffic and SSD is used.