From the course: Node.js: Debugging and Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Caching fundamentals

Caching fundamentals

From the course: Node.js: Debugging and Performance Tuning

Start my 1-month free trial

Caching fundamentals

- [Instructor] One way to make applications faster is to use caching. In programming, caching is storing and retrieving data in a temporary storage area. Within the scope of this course we'll be taking a high level overview of the fundamentals of caching. In the final video I'll provide some more information on courses in your library where you could take a deeper dive. Caching is used to store the results of slow or inefficient operations. A cache is typically stored with an expiration time. So when that time is reached then the slow operation is executed again. The expiration time is set with what's known as a time to live or TTL. TTL is a counter that limits the chronological lifetime of data. Cached data can have an infinite TTL, but that runs the risk of having out of date data. Therefore, it's best to have a logical balance between having the most current data and avoiding slow operations. That's always an interesting conversation when balancing business and technical leads…

Contents