It would be useful to have a localStorage implementation which is strongly typed and also allows to set an expiration time