I was wondering what would be the best way to store JSON/XML responses. I'm currently building an application that supports heavily on the SoundCloud API to fetch songs/playlists etc.
Here are some ideas I've come up with.
- Storing the results in a Relational Database and then using PHP to convert them to classes to make easy use of them throughout my application.
- Doing the above, only this time using my framework's built-in ORM.
- Using a Document-Oriented Database. (ie. MongoDB, couchDB, ...)
- Storing the JSON responses in a cache. (using my framework's cache classes)
Can anyone care to shed some light on some of the advantages/disadvantages of using any of these methods?
Which one do you prefer?