2.0.0 • Published 4 years ago

aplus-storage v2.0.0

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

使用方法

npm i
npm run build
<script src="./dist/astorage.js"></script>
<script>astorage.getItem('something', myCallback);</script>

测试方法

npm run test

新特性

  • 支持缓存替换策略
  • 当存储的容量大于数据库的限额时会自动按照LRU来替换
  • 也可以自己通过下面的命令来设置数据库限额(占用空间是近似计算的,会有偏差,请酌情使用)
astorage.config({size: 4980736, usesize: true});
2.0.0

4 years ago

1.0.0

4 years ago