Sure. Now keep everything in memory and use redis or memcache. Easy to get performance if you change the rules.
You can use SQLite for persistence and a hash map as cache. Or just go for Mongo since it's web scale.
You can use SQLite for persistence and a hash map as cache. Or just go for Mongo since it's web scale.