lscache icon indicating copy to clipboard operation
lscache copied to clipboard

ExpiryMilliseconds-value is lost

Open vonloxley opened this issue 6 years ago • 0 comments

Changing the ExpiryMilliseconds value affects the expiration of already saved values.

lscache.setExpiryMilliseconds(1)
undefined
lscache.set('t','asd',1);
undefined
lscache.get('t')
null
lscache.set('t','asd',1);
undefined
lscache.setExpiryMilliseconds(100)
undefined
lscache.get('t')
"asd"

The last get() should return null.

vonloxley avatar Nov 26 '18 11:11 vonloxley