1.0.2 • Published 2 years ago
http-indexdb-cache v1.0.2
安装:
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);