Tag: cache
Browse 8 practical software engineering resources tagged with "cache". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving cache. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Caching for Performance
Caching stores copies of data closer to where it is needed to reduce latency and load. It is one of the most effective performance optimizations but requires careful invalidation.
The resources below cover in-memory caches, distributed caches, CDNs, TTL, cache invalidation, and eviction policies. Each recipe shows how to speed up access while keeping data consistent.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
Configure Caffeine Cache in Java with Eviction Policies
Set up Caffeine cache in a Java application with size-based, time-based, and weighted eviction...
Multi-Level Cache with In-Memory L1 and Redis L2
Implement a two-level cache combining in-memory L1 and Redis L2 for low-latency reads with...
Implement an LRU Cache in Node.js
Build a least-recently-used cache in Node.js with O(1) get and set operations using a Map-based...
Cache Database Queries with Django Cache Framework
Use Django's built-in cache framework with per-view caching, template fragment caching, and...
Caching with Redis
How to implement application caching using Redis for performance and scalability.
Connect to Redis
How to connect to Redis and perform basic operations in Python, JavaScript, and Java.
Redis Cache Patterns for High-Performance Applications
How to implement cache-aside, write-through, and write-behind patterns with Redis to reduce...
Embedding Cache Pattern
Cache LLM embeddings to reduce API calls and cost. Store embeddings with a content hash key and...