<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cache on Khang Nghiem</title><link>https://www.khangnghiem.com/tags/cache/</link><description>Recent content in Cache on Khang Nghiem</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 14 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.khangnghiem.com/tags/cache/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis for Beginners: The Cache That Does More Than You Think</title><link>https://www.khangnghiem.com/post/redis-for-beginners/</link><pubDate>Sun, 14 Jun 2026 00:00:00 +0000</pubDate><guid>https://www.khangnghiem.com/post/redis-for-beginners/</guid><description>&lt;p&gt;Most Redis tutorials start with &amp;ldquo;Redis is an in-memory key-value store.&amp;rdquo; That sentence is accurate and tells you almost nothing useful. This post starts from the problem Redis was built to solve, then explains each data structure and pattern from the problem it solves, not from what it is called.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="part-1-why-redis-exists"&gt;Part 1: Why Redis Exists&lt;/h2&gt;
&lt;h3 id="the-latency-gap-nobody-talks-about"&gt;The latency gap nobody talks about&lt;/h3&gt;
&lt;p&gt;You build a web app. At first, everything is fast. Then traffic grows. You look at your query logs and see the same queries running thousands of times per minute: &amp;ldquo;get user profile,&amp;rdquo; &amp;ldquo;get product details,&amp;rdquo; &amp;ldquo;get homepage feed.&amp;rdquo; The data barely changes, but you are hitting the database every single time.&lt;/p&gt;</description></item></channel></rss>