+1-855-211-0932 (ID:287497)
Don't have an account yet? Sign up now!

HomeArticlesHow to Use Memcached

How to Use Memcached

How to Use Memcached

How to Use Memcached

The Memcached system is employed by high-traffic websites such as YouTube, Facebook, and Twitter, providing fast data caching to improve performance. It is also supported by popular CMS platforms like WordPress, Joomla, and Drupal.

To use Memcached with PHP, enable the Memcached extension via your hosting control panel:

  • Navigate to Advanced → PHP Settings
  • Edit php.ini and turn memcached On

If your plan doesn't include Memcached instances, you can purchase them as an upgrade through the Add/Upgrade service(s) section of the hosting control panel. Each instance includes 16 MB of memory, enabling efficient caching for your application.

Important: Many applications need a host and port to connect with Memcached. In our system, Memcached operates on a socket rather than a port.

To configure Memcached, use the following details:

Memcached Hostname (IP): unix:///home/sys/memcached.sock
Memcached Port: 0

Example code for PHP:

$memcached->addServer('unix:///home/sys/memcached.sock', 0);


Tags: , , , , , , , , , , , , , , , , , ,

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>