@loveduk/cache-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @loveduk/cache-manager

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

7.88 kB

Total Files

7

Last publish

Collaborators

  • loveduk