【问题标题】:Using ActiveRecord caching library in Heroku在 Heroku 中使用 ActiveRecord 缓存库
【发布时间】:2010-05-06 12:35:32
【问题描述】:

我正在研究如何在我的 Rails 应用程序中使用 Heroku 中的缓存。由 Varnish 提供支持的 HTTP 缓存非常棒,我会在没有用户信息的情况下在所有页面中使用它,但我也想使用一种 ActiveRecord 缓存和 Memcached,使用“高活性”插件,例如 cache_fu 或 cache-money ......但它Heroku 似乎只支持 memcached gem (http://docs.heroku.com/memcache),而且它是一个非常低级的 Memcachad API...

您还有其他解决方案吗?

谢谢。

【问题讨论】:

    标签: ruby-on-rails activerecord caching memcached heroku


    【解决方案1】:

    结帐http://github.com/teich/heroku-cache-money。我也打算这样做。

    【讨论】:

      【解决方案2】:

      ActiveSupport 模块有 built-in cache store support 可以由 memcached 支持。 This Railscast有详细信息。

      【讨论】:

      • 嗨 John,谢谢,我知道用于缓存/memcached 的 ActiveSupport 模块,但我想使用(在 Heroku 中)帮助我通过 memcached 透明地绑定 ActiveRecord 对象的插件...
      猜你喜欢
      • 2011-10-28
      • 2012-12-29
      • 1970-01-01
      • 1970-01-01
      • 2015-01-02
      • 2013-12-16
      • 2011-02-08
      • 2010-12-31
      • 1970-01-01
      相关资源
      最近更新 更多