[w3c/IndexedDB] Expiry of databases (#205)

One of the worries to use IndexedDB is resource management used by them. For example, we need to remember all database names and delete all unused databases.

```js
indexedDB.open('a');
// 3 years later
indexedDB.deleteDatabase('a');
indexedDB.deleteDatabase('b');
...
indexedDB.deleteDatabase('y');
indexedDB.open('z');
```

It is too complicated. If IndexedDB can be set the expiry, we don't need to write the code for management.

```js
indexedDB.open('a', 0, 30 * 24 * 3600 * 1e3); // will be automatically deleted 30 days later since last access.
// 3 years later
indexedDB.open('z', 0, 30 * 24 * 3600 * 1e3);
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/205

Received on Monday, 29 May 2017 15:50:15 UTC