@loveduk/cache-manager
v1.0.2
Published
// "main": "dist/bundle.esm.js", "main": "src/index.ts", resource-cache
Downloads
86
Readme
resource-cache
// "main": "dist/bundle.esm.js", "main": "src/index.ts", resource-cache
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="map"></div>
</body>
<script src="../node_modules/ajax-hook/dist/ajaxhook.min.js"></script>
<script src="../node_modules/localforage/dist/localforage.min.js"></script>
<script src="../dist//bundle.umd.js"></script>
<script>
const cacheManager=new CacheManager({
storeUrls: ["/image/"]
});
cacheManager.calculateCacheSize().then(res=>{
console.log(res);
})
</script>
<style>
#map{
width: 100%;
height: 100vh;
position: fixed;
}
</style>
<script >
</script>
</html>