I’m using Memcached and Dalli store for my rails app.
Is there a way to set something like expires_in and gzip for caches_action?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add them to the
caches_actioninvocation line as cache parameters; all parameters that are not specific tocaches_actionwill be passed to the actual memcachefetchcall.I use Dalli and Rails 3.1.3, and this code works as intended. I suppose, gzipping would also work.