Working with the Cache API
Learn how to use the Cache API and get to know the functions it provides.
We'll cover the following
The caches
interface
The Cache API provides every web application with a caches
interface, which gives us access to the cache storage of our application. Multiple sub-caches can be opened inside the cache storage. Let’s see how to open a cache in it using the caches
interface.
The caches.open(name: string)
method
The open(name)
method will open the cache (with the given name) if it already exists. Otherwise, it will create one and then open it.
Get hands-on with 1400+ tech skills courses.