{"id":16648,"date":"2024-11-11T15:09:56","date_gmt":"2024-11-11T20:09:56","guid":{"rendered":"https:\/\/kb.n0c.com\/?post_type=ht_kb&#038;p=16648"},"modified":"2026-10-08T14:56:16","modified_gmt":"2026-10-08T18:56:16","slug":"how-to-use-redis","status":"publish","type":"ht_kb","link":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/","title":{"rendered":"How to Use Redis"},"content":{"rendered":"\n<p><strong>Redis<\/strong> means <em><strong>RE<\/strong>mote <strong>DI<\/strong>ctionary <strong>S<\/strong>erver<\/em>. In this article, we will look at how to use it 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 cache 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&nbsp;<a href=\"https:\/\/kb.n0c.com\/en\/glossaire\/cms\/\">CMS<\/a>&nbsp;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<\/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 Redis?<\/h2>\n\n\n\n<p><strong>Redis<\/strong> is a key-value database, primarily used as an in-memory database, cache and message broker.<\/p>\n\n\n\n<p>Designed for fast performance, Redis is capable of handling large amounts of data, making it a popular choice for applications requiring very fast response times. In fact, unlike traditional disk-based databases, Redis stores data directly in memory, making it extremely fast for reads and writes.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Redis and Memcached are similar and both allow cache flushing, but Redis offers better memory management.<br>Enabling them does not change anything as such, unless a use is made of them, in a CMS or in a client-created application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Activate Redis<\/h2>\n\n\n\n<p>If it is justified to activate Redis for a Web Project:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>From the context menu, choose <strong>Performance<\/strong> -> <strong>Redis<\/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\/Redis_ecran_principal_2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"509\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png\" alt=\"Redis dialog box in N0C\" class=\"wp-image-26442\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png 795w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN-300x192.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN-768x492.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN-50x32.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN-60x38.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN-100x64.png 100w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/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\/Redis_activation_2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"510\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN.png\" alt=\"How to Activate Redis in N0C\" class=\"wp-image-26444\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN.png 796w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN-300x192.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN-768x492.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN-50x32.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN-60x38.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_activation_2026-10-08_EN-100x64.png 100w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/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<h2 class=\"wp-block-heading\">Actions<\/h2>\n\n\n\n<p>The various actions possible when the Redis 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 Redis.<\/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 Redis 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 Redis after you have stopped it.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Deactivate Redis<\/h2>\n\n\n\n<p>To deactivate Redis for your 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\/Redis_desactivation_2026-10-08_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"509\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN.png\" alt=\"How to Deactivate Redis in N0C\" class=\"wp-image-26446\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN.png 795w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN-300x192.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN-768x492.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN-50x32.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN-60x38.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_desactivation_2026-10-08_EN-100x64.png 100w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/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>Redis means REmote DIctionary Server. In this article, we will look at how to use it 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 cache and start it. We will also explain how&#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":[451,452],"class_list":["post-16648","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-performances_en","ht_kb_tag-redis-2","ht_kb_tag-redis-in-n0c-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 Redis - N0C KB<\/title>\n<meta name=\"description\" content=\"This article explains how to use Redis 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-redis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Redis - N0C KB\" \/>\n<meta property=\"og:description\" content=\"This article explains how to use Redis on N0C for a given Web Project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/\" \/>\n<meta property=\"og:site_name\" content=\"N0C KB\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-08T18:56:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png\" \/>\n\t<meta property=\"og:image:width\" content=\"795\" \/>\n\t<meta property=\"og:image:height\" content=\"509\" \/>\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-redis\\\/\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/\",\"name\":\"How to Use Redis - N0C KB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Redis_ecran_principal_2026-10-08_EN.png\",\"datePublished\":\"2024-11-11T20:09:56+00:00\",\"dateModified\":\"2026-10-08T18:56:16+00:00\",\"description\":\"This article explains how to use Redis on N0C for a given Web Project.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Redis_ecran_principal_2026-10-08_EN.png\",\"contentUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2024\\\/11\\\/Redis_ecran_principal_2026-10-08_EN.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/how-to-use-redis\\\/#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 Redis\"}]},{\"@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 Redis - N0C KB","description":"This article explains how to use Redis 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-redis\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Redis - N0C KB","og_description":"This article explains how to use Redis on N0C for a given Web Project.","og_url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/","og_site_name":"N0C KB","article_modified_time":"2026-10-08T18:56:16+00:00","og_image":[{"width":795,"height":509,"url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_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-redis\/","url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/","name":"How to Use Redis - N0C KB","isPartOf":{"@id":"https:\/\/kb.n0c.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/#primaryimage"},"image":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/#primaryimage"},"thumbnailUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png","datePublished":"2024-11-11T20:09:56+00:00","dateModified":"2026-10-08T18:56:16+00:00","description":"This article explains how to use Redis on N0C for a given Web Project.","breadcrumb":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/#primaryimage","url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png","contentUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/11\/Redis_ecran_principal_2026-10-08_EN.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-use-redis\/#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 Redis"}]},{"@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\/16648","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=16648"}],"version-history":[{"count":26,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/16648\/revisions"}],"predecessor-version":[{"id":26449,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/16648\/revisions\/26449"}],"wp:attachment":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/media?parent=16648"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=16648"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=16648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}