How to handle cache in rails 3.2.11

In my application i need to do authenticate the user for each actions in controllers. In this case how cache can maintain until logout