开发者

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

开发者 https://www.devze.com 2023-02-02 12:21 出处:网络
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 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

精彩评论

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