Ruby on Rails templates for interacting and caching with Redis