sindresorhus/electron-store

Use expiration

Aperta

#125 aperta il 16 giu 2020

 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (150 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4304 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

It would be awesome if we can set a max age for a single key or the whole store.

For example:

store.set('foo.bar', true, { maxAge: expirationDate });

Guida contributor