{"id":16692,"date":"2024-11-12T17:56:32","date_gmt":"2024-11-12T22:56:32","guid":{"rendered":"https:\/\/kb.n0c.com\/?post_type=ht_kb&#038;p=16692"},"modified":"2026-10-08T14:57:24","modified_gmt":"2026-10-08T18:57:24","slug":"how-to-use-memcached","status":"publish","type":"ht_kb","link":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/","title":{"rendered":"How to Use Memcached"},"content":{"rendered":"\n<p>In this article, we will look at how to use Memcached on N0C for a given Web Project.<\/p>\n\n\n\n<p>Having explained how to activate it, we will look at how to stop it, restart it, delete the&nbsp;cache&nbsp;and start it. We will also explain how to deactivate it.<\/p>\n\n\n\n<p>If you are an advanced user and use a CMS that supports Memcached, please refer to the following articles:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-enable-memcached-or-redis-on-wordpress-with-litespeed-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Enable Memcached or Redis on WordPress with LiteSpeed Cache<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-enable-memcached-or-redis-on-joomla-with-litespeed-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Enable Memcached or Redis on Joomla! with LiteSpeed Cache<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-enable-memcached-or-redis-on-prestashop-with-litespeed-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Enable Memcached on PrestaShop with LiteSpeed Cache<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">The <a href=\"https:\/\/kb.n0c.com\/en\/glossary\/\">glossary<\/a> contains explanations on a wide range of subjects and can be consulted to clarify certain terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Enter the following address in your web browser: <a href=\"https:\/\/mg.n0c.com\/en\/\">https:\/\/mg.n0c.com\/en\/<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Memcached?<\/h2>\n\n\n\n<p><strong>Memcached<\/strong>&nbsp;is a free, open-source, high-performance, distributed memory object caching system that is generic in nature, but designed to speed up dynamic web applications by alleviating the load on the database.<\/p>\n\n\n\n<p>Roughly speaking, the principle is to use an in-memory database that quickly makes the elements stored in RAM&nbsp;available to website users. In more technical terms, it is an in-memory key-value store for small chunks of arbitrary data (strings, objects, etc.) resulting from database calls, API&nbsp;calls or page rendering.<\/p>\n\n\n\n<p>Simple, powerful and designed for quick deployment, Memcached facilitates development and solves many of the problems facing large data caches. Its API is available for most common languages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Activate Memcached<\/h2>\n\n\n\n<p>If it is justified to activate <strong>Memcached<\/strong> for a Web Project:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>From the context menu, choose <strong>Performance<\/strong> -&gt; <strong>Memcached<\/strong>, to open the dialog box of the same name:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"514\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png\" alt=\"Memcached dialog box in N0C\" class=\"wp-image-26414\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png 782w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN-300x197.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN-768x505.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN-50x33.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN-60x39.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN-100x66.png 100w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>The <strong>Path<\/strong> shows the user the complete network <strong>socket<\/strong>. When queried, statistics are displayed.<\/li>\n\n\n\n<li>Set the <strong>Status<\/strong> to <strong>ON<\/strong> (initially, it defaults to <strong>OFF<\/strong>):<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"533\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN.png\" alt=\"How to Activate Memcached in N0C\" class=\"wp-image-26416\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN.png 802w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN-300x199.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN-768x510.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN-50x33.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN-60x40.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ON-2026-10-08_EN-100x66.png 100w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>A confirmation message is displayed and the possible actions are activated.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Actions<\/h3>\n\n\n\n<p>The various actions possible when the Memcached status is <strong>ON<\/strong> are described in the table below.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td><strong>Action<\/strong><\/td><td><strong>Signification<\/strong><\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"44\" height=\"44\" class=\"wp-image-16627\" style=\"width: 44px;\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_arreter.png\" alt=\"\"><\/td><td><strong>Stop<\/strong><\/td><td>To stop Memcached.<\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"42\" height=\"46\" class=\"wp-image-16633\" style=\"width: 42px;\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_redemarrer.png\" alt=\"\"><\/td><td><strong>Restart<\/strong><\/td><td>To restart Memcached without stopping first.<\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"39\" height=\"40\" class=\"wp-image-16631\" style=\"width: 39px;\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_vider_cache.png\" alt=\"\"><\/td><td><strong>Delete Cache<\/strong><\/td><td>To empty the cache.<\/td><\/tr><tr><td><img loading=\"lazy\" decoding=\"async\" width=\"44\" height=\"47\" class=\"wp-image-16629\" style=\"width: 44px;\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_demarrer.png\" alt=\"\"><\/td><td><strong>Start<\/strong><\/td><td>To start Memcached after you have stopped it.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Deactivate Memcached<\/h2>\n\n\n\n<p>To deactivate Memcached for a Web Project, simply set the <strong>Status<\/strong> to <strong>OFF<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"514\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN.png\" alt=\"How to Deactivate Memcached in N0C\" class=\"wp-image-26419\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN.png 782w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN-300x197.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN-768x505.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN-50x33.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN-60x39.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_OFF-2026-10-08_EN-100x66.png 100w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/figure><\/div>\n\n\n<p>A confirmation message is displayed and possible actions are automatically deactivated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will look at how to use Memcached on N0C for a given Web Project. Having explained how to activate it, we will look at how to stop it, restart it, delete the&nbsp;cache&nbsp;and start it. We will also explain how to deactivate it. If you are an&#8230;<\/p>\n","protected":false},"author":4,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[379],"ht-kb-tag":[456,457],"class_list":["post-16692","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-performances_en","ht_kb_tag-memcached-2","ht_kb_tag-n0c-memcached-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Use Memcached - N0C KB<\/title>\n<meta name=\"description\" content=\"This article explains how to use Memcached on N0C for a given Web Project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Memcached - N0C KB\" \/>\n<meta property=\"og:description\" content=\"This article explains how to use Memcached on N0C for a given Web Project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/\" \/>\n<meta property=\"og:site_name\" content=\"N0C KB\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-08T18:57:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png\" \/>\n\t<meta property=\"og:image:width\" content=\"782\" \/>\n\t<meta property=\"og:image:height\" content=\"514\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/\",\"name\":\"How to Use Memcached - N0C KB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Memcached_ecran_principal-2026-10-08_EN.png\",\"datePublished\":\"2024-11-12T22:56:32+00:00\",\"dateModified\":\"2026-10-08T18:57:24+00:00\",\"description\":\"This article explains how to use Memcached on N0C for a given Web Project.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Memcached_ecran_principal-2026-10-08_EN.png\",\"contentUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Memcached_ecran_principal-2026-10-08_EN.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-memcached\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use Memcached\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/\",\"name\":\"N0C KB\",\"description\":\"Official documentation of the N0C hosting platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kb.n0c.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use Memcached - N0C KB","description":"This article explains how to use Memcached on N0C for a given Web Project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Memcached - N0C KB","og_description":"This article explains how to use Memcached on N0C for a given Web Project.","og_url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/","og_site_name":"N0C KB","article_modified_time":"2026-10-08T18:57:24+00:00","og_image":[{"width":782,"height":514,"url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/","url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/","name":"How to Use Memcached - N0C KB","isPartOf":{"@id":"https:\/\/kb.n0c.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/#primaryimage"},"image":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/#primaryimage"},"thumbnailUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png","datePublished":"2024-11-12T22:56:32+00:00","dateModified":"2026-10-08T18:57:24+00:00","description":"This article explains how to use Memcached on N0C for a given Web Project.","breadcrumb":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/#primaryimage","url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png","contentUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Memcached_ecran_principal-2026-10-08_EN.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-memcached\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/kb.n0c.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/kb.n0c.com\/en\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"How to Use Memcached"}]},{"@type":"WebSite","@id":"https:\/\/kb.n0c.com\/#website","url":"https:\/\/kb.n0c.com\/","name":"N0C KB","description":"Official documentation of the N0C hosting platform","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.n0c.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/16692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/comments?post=16692"}],"version-history":[{"count":22,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/16692\/revisions"}],"predecessor-version":[{"id":26450,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/16692\/revisions\/26450"}],"wp:attachment":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/media?parent=16692"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=16692"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=16692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}