1.0.2 • Published 2 years ago

http-indexdb-cache v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

安装:

npm i -D http-indexdb-cache

使用:

import httpIndexdbCache from 'http-indexdb-cache'

const cacheConfig = {
  storeName: 'lingang-admin',
  rules: [
    {
      keyword: 'scene',
      maxAge: 2592000000, // 30days
    },
    {
      keyword: 'virtualearth',
      maxAge: 2592000000,
    },
  ];
}

httpIndexdbCache.init(cacheConfig);
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago