On Fri, Jan 23, 2015 at 5:51 AM, Colin Nolic <lists@ruby-forum.com> wrote:
> I'm using an external api (themoviedb) to retrieve movies informations.
> The user type the name of the movie, the application fetch a list of
> movies. Then the user pick the right movie from the list and the movie
> is saved to the database.
>
> I don't know much about redis but I wonder if using redis for
> temporarily store the list of movies and then store the right movie
> (chosen by the user) to postgres database ?
>
> Or maybe there is a better way to acheive my goal ?
What *is* your goal? The scenario described doesn't require you to
"store" the movie list anywhere.
Do you need to insure a fresh list every time? If not, then yes, some
kind of local storage makes sense, either volatile (e.g. memcached)
or persistent (e.g. redis).
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA-3rt%3DQiPctVsOuyA%2B3ctx5YtdD2Uj2DyY5f7_YNC8sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment