implementing the localStorage/sessionStorage/memory verison of the newly structured storage base layer