开发者

Is memcache store from a cron task in heroku different from memcache store in web server

I think everything is in the topic title:

I have an application on h开发者_如何转开发eroku. This application has a rake cron task. In this task, I want to store some values into cache.

I cache using : Rails.cache.write(key, value). I use md5 digest to generate the key.

Now, in my regular controllers, if i call the EXACT same key with Rails.cache.fetch/read(key), i'm just not fetching the data (stored during the rake task).

So, I was wondering: the cache stores are differents? If so, how can I create a common store?

Regards,

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜