Feb 6 · 2 min read · Cache is simply faster storage located closer to the computation. Where Cache Lives ? Cache Read Patterns 1. Cache-Aside (Lazy Loading) This is the most common pattern in production. The application controls the cache: 2. Read-Through Cache Th...
Join discussionOct 29, 2025 · 6 min read · Após a luta contra o “Byte Fantasma” e a serialização e a deserialização manual (que rendeu algumas boas histórias), havia chegado o momento enfrentar o próximo “boss”: gerenciador de buffer. Basicamente, ele é responsável por fazer a gestão do cache...
Join discussionJul 9, 2025 · 4 min read · Hashmaps. Everyone thinks they’re just glorified phonebooks for storing key: value pairs.But what if I told you they’ve been silently solving some of the trickiest DSA problems…while arrays are still figuring out how not to get O(n) time for everythi...
Join discussion
Jul 1, 2025 · 3 min read · 📚 Introduction Imagine you’re a librarian with limited shelf space. Every time a new book comes in, and there’s no space left, you remove the least recently read book to make room. That’s exactly what an LRU (Least Recently Used) Cache does — and in...
Join discussionJun 19, 2025 · 6 min read · 🧬 1. What is an LRU Cache? LRU Cache stands for "Least Recently Used" cache. Think of it as a smart storage box that remembers what you used last and throws away the oldest stuff when it gets full. 📦 Easy example: Your phone only shows your last 5...
Join discussion
Jun 15, 2025 · 4 min read · What is an LRU Cache? In many systems such as browsers, operating system memory management, and databases, we need to keep recently used items easily accessible while discarding the least used ones. That’s where LRU (Least Recently Used) Cache comes ...
Join discussion
Apr 24, 2025 · 3 min read · Chào các bạn, hôm nay mình muốn giới thiệu một bài code từng được phỏng vấn role junior. Nội dung của bài toán là: Implement thuật toán cache LRU. Mô tả bài toán Như các bạn đã biết thì cache là bộ nhớ đệm giúp tăng hiệu năng hệ thống, tuy nhiên nó c...
Join discussion
Mar 8, 2025 · 4 min read · Introduction Efficient caching is a crucial part of optimizing software performance. One of the most widely used caching techniques is the Least Recently Used (LRU) Cache. The LRU Cache ensures that the most recently accessed data is retained while t...
Join discussion
Mar 6, 2025 · 10 min read · I hope you have worked with cache or know the use of it. Let’s design an LRU cache using OOPs and principles from scratch keeping the design extensible. After going through this article you should be confident enough to create any type of Cache desig...
Join discussion