{"id":5864,"date":"2015-04-24T11:33:23","date_gmt":"2015-04-24T11:33:23","guid":{"rendered":"http:\/\/www.esds.co.in\/blog\/?p=5864"},"modified":"2019-01-25T09:43:04","modified_gmt":"2019-01-25T09:43:04","slug":"how-many-types-of-cache-do-you-know","status":"publish","type":"post","link":"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/","title":{"rendered":"How many types of Cache do you know?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\" aligncenter wp-image-5865\" src=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/cache07.jpg\" alt=\"cache\" width=\"749\" height=\"311\" srcset=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/cache07.jpg 968w, https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/cache07-300x125.jpg 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#Intro\" >Intro:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#Are_you_sure_youre_well_verse_with_the_term_Well_I_can_guarantee_that_you_dont\" >Are you sure you\u2019re well verse with the term? Well, I can guarantee that you don\u2019t.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#Example\" >Example:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#What_we_learned_from_the_above_example\" >What we learned from the above example?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#Client_and_Server_Cache\" >Client and Server Cache:<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/#Stay_tuned_In_next_part_we_will_discuss_and_see_some_more_examples_of_the_Cache_use\" >Stay tuned! In next part we will discuss and see some more examples of the Cache use!<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<h4><span class=\"ez-toc-section\" id=\"Intro\"><\/span><strong>Intro:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h3><span class=\"ez-toc-section\" id=\"Are_you_sure_youre_well_verse_with_the_term_Well_I_can_guarantee_that_you_dont\"><\/span><strong>Are you sure you\u2019re well verse with the term? Well, I can guarantee that you don\u2019t. <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">\u2018Cache\u2019 is often heard or may be an overheard term in the digital world. Though, we often get to read it along <a title=\"dedicated servers\" href=\"https:\/\/www.esds.co.in\/dedicated-server-hosting.php\" target=\"_blank\" rel=\"noopener\"><strong>the dedicated server specifications<\/strong><\/a>, but only a few know what its role is.<\/p>\n<p style=\"text-align: justify;\">Before describing its operation, it is important to know that Cache is often used in many protocols and technologies. The prime aim of Cache is to communicate between two or more machines faster. That means it avoids unnecessary recurrence action and data exchange. Take an example of the use and usefulness of the Cache in a web exchange to enhance overall performance more appropriately.<\/p>\n<p><strong>Note: <\/strong>The Cache is not something which is new to us; it can be rather used in a lot of other areas as well.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example\"><\/span><strong>Example: <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">When a client makes an HTTP request to a website to access or retrieve a web page, the server doesn\u2019t return the whole web page in one piece; the server sends a base code that contains of other links and packets in the best ordered form that the client will pick up when he finds them in the basic code (i.e. HTML). The HTML code just gives indication as \u201cyou have to go this place and search the image found on <strong>http:\/\/www.mydomain.com\/images\/image09<\/strong>\u201d to display image or call CSS files that helps in shape and implement shape, color and HTML page.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_we_learned_from_the_above_example\"><\/span><strong>What we learned from the above example?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">When a client visits a website, the server plays a role of instructor saying that an element as an image or snapshot can be stored locally on the client side, because it\u2019s a subject that is not changed often. If client revisits that page and using the same images, will therefore be able to go and get those pictures stored location in cached form and not on the server if it\u2019s refreshed. Fetching a local file rather than a server file allows a faster response because it generates less action.<\/p>\n<p style=\"text-align: justify;\">It is important to know that the example given above outlines what hides in the web browser, this is one way that can run the Cache, but there are many others. However, all repeat the same principle: store a query, file, object or an element defined in once place to make it faster provided to the use or final service. This is the main role of the Cache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Client_and_Server_Cache\"><\/span><strong>Client and Server Cache: <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Overall, it can put forward two kinds of Cache: the Client Cache and the Server Cache.<\/p>\n<p style=\"text-align: justify;\">\u00a0As their name suggests, the first is the fact of hiding an object or a file on the Client side or near to the client side to start again the information in cached form. So the next time when client needs it, it\u2019s found in search of the ARP Cache, DNS Cache, which will talk then.<\/p>\n<p style=\"text-align: justify;\">The second category corresponds to the server side actions that are cached after queries. Often, the request made by client can be similar for each requests; the server will perform as a processing unit to provide an answer to queries (research, sorting, listing, calculations, etc\u2026). The principle of the Cache server is that you will remember for a query and cache for the response.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-5875 aligncenter\" src=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache1.jpg\" alt=\"Cache1\" width=\"663\" height=\"201\" srcset=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache1.jpg 871w, https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache1-300x91.jpg 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/p>\n<p style=\"text-align: justify;\">Here, a first client makes a request to a server, could be a simplified application or may be a simple action (web, PHP page generation) or more complex (searching a large database, etc\u2026). The server receives request, performs the necessary processing and calculation to answer and then responds to the client by caching the response. So that will help to prevent the repetition of same request, all calculation and research that is to do.<\/p>\n<p style=\"text-align: justify;\">For example, to a query how much is 1+5? The answer is 6 for the first customer. If a second query or request is also same to the server, it will directly give answer 6 without trying to re-calculate (if the first response was cached). This makes it possible to respond more quickly to the server and also make it to use fewer resources that can then be used for other processes.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5880 aligncenter\" src=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache2.jpg\" alt=\"Cache2\" width=\"681\" height=\"162\" srcset=\"https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache2.jpg 795w, https:\/\/www.esds.co.in\/blog\/wp-content\/uploads\/2015\/04\/Cache2-300x71.jpg 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/p>\n<p style=\"text-align: justify;\">Here, a second client makes the same request to the same server. Our server have taken the precaution of putting this request and response as well in cached form and will not need to repeat the same process to respond. It will fetch the corresponding answer directly from its cache before returning to the client.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Stay_tuned_In_next_part_we_will_discuss_and_see_some_more_examples_of_the_Cache_use\"><\/span>Stay tuned! In next part we will discuss and see some more examples of the Cache use!<span class=\"ez-toc-section-end\"><\/span><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Intro: Are you sure you\u2019re well verse with the term? Well, I can guarantee that you don\u2019t. \u2018Cache\u2019 is often heard or may be an overheard term in the digital world. Though, we often get to read it along the dedicated server specifications, but only a few know what its role is. Before describing its&#8230; <\/p>\n<div class=\"clear\"><\/div>\n<p><a href=\"https:\/\/www.esds.co.in\/blog\/how-many-types-of-cache-do-you-know\/\" class=\"gdlr-button small excerpt-read-more\">Read More<\/a><\/p>\n","protected":false},"author":24,"featured_media":5865,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[1289,1288],"class_list":["post-5864","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dedicated-server-hosting","tag-different-types-of-cache","tag-what-is-cache"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/posts\/5864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/comments?post=5864"}],"version-history":[{"count":26,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/posts\/5864\/revisions"}],"predecessor-version":[{"id":9105,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/posts\/5864\/revisions\/9105"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/media\/5865"}],"wp:attachment":[{"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/media?parent=5864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/categories?post=5864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esds.co.in\/blog\/wp-json\/wp\/v2\/tags?post=5864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}