Hacker News new | past | comments | ask | show | jobs | submit login
Simple model class for redis/php (github.com/liuliu)
2 points by liuliu on Dec 29, 2010 | hide | past | favorite | 1 comment



I implemented this yesterday mainly because my object models take a lot of repeated pattern for redis interaction. Since redis is not a relational-based database, it won't take care of any kind of relationship between models. In that perspective, it is really just a better way to write $redis->set("somekey", serialize(your model)) with limited indexing capacity.

Posted here in a hope that a better solution will show up. and happy holiday everyone.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: