sindresorhus/electron-store

Use expiration

Open

#125 aperta il 16 giu 2020

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

Metriche repository

Star
 (4304 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

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