Caching ले बारम्बार पहुँच गरिने डेटालाई द्रुत तहमा (प्राय: मेमोरीमा) भण्डार गर्छ ताकि यो पुनः गणना गर्न वा ढिलो स्रोतहरूबाट पुनः प्राप्त गर्न बिना द्रुत रूपमा पुनःप्राप्त गर्न सकिन्छ। यो कार्यक्षमता र स्केलेबिलिटी सुधार गर्नको लागि सबैभन्दा महत्त्वपूर्ण प्रविधिहरू मध्ये एक हो।
क्याशिङ् के गर्छ
CACHING stores copies of data in a FAST location for quick repeated access:
→ instead of recomputing or re-fetching from a slow source (database, API, computation),
serve from the fast cache
→ DRAMATICALLY faster (cache hit) + REDUCES load on the slow backend
→ trades some staleness/complexity for big performance and scalability gains.
क्याशिङ् कहाँ प्रयोग गरिन्छ (तहरू)
BROWSER / CLIENT cache → cache on the user's device
CDN → cache static content at edge locations near users
APPLICATION cache (e.g. Redis/Memcached) → cache DB query results, computed data, sessions
DATABASE cache → query/result caching
→ caching can happen at MULTIPLE layers (defense in depth for performance)
