You can use SQLite for persistence and a hash map as cache. Or just go for Mongo since it's web scale.