Taisce stóraíonn sí sonraí a fhéachtear go minic i gclár gasta (go minic in cuimhne) ionas gur féidir iad a fhail go tapa gan iad a athríomh nó a fhail arís ó fhoinsí níos moille. Tá sí ar cheann de na teicníochtaí is tábhachtaí chun feidhmíochta agus scálúlachta a fheabhsú.
Cad a dhéanann taisce
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.
Áit a úsáidtear taisce (sraitheanna)
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)
