Lightweight is your problem here, I think, but I've used CouchDB successfully in similar situations. However, its not in-memory like Redis is.
For such a small need, you might also look at PouchDB. Inspired by couch but simplified to allow it to run in-browser.