utils/index.html
ztimson 2a7fa18c0e
All checks were successful
Build / Build NPM Project (push) Successful in 1m24s
Build / Tag Version (push) Successful in 53s
Build / Publish Documentation (push) Successful in 1m28s
Added indexdb wrapper & cache support for it
2025-05-15 16:06:32 -04:00

16 lines
298 B
HTML

<html>
<body>
<script type="module">
import {Cache, Collection} from './dist/index.mjs';
const cache = new Cache('id', {
ttl: 60,
storage: new Collection('test', 'test'),
expiryPolicy: 'delete'
});
cache.add({id: 1, name: 'zak', age: 27});
</script>
</body>
</html>