Skip to content

Instantly share code, notes, and snippets.

@ritikrishu
Created March 11, 2018 21:09
Show Gist options
  • Save ritikrishu/e1e04a2412f56a317b42151e1f16c6b2 to your computer and use it in GitHub Desktop.
Save ritikrishu/e1e04a2412f56a317b42151e1f16c6b2 to your computer and use it in GitHub Desktop.
creating/opening a cache
caches.open('my-cache-category-name')
.then(cache => {
/**
`cache` is the store of my-cache-category-name cache
if it does not exists, it is created and a reference is give here
if it exists already, reference to that cache is provided
*/
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment