如何从Rails标准环境连接到Google的App Engine共享Memache服务?

问题描述 投票:0回答:1

我有一个在Google Cloud App Engine标准环境中运行的Rails应用程序。我希望能够连接到App Engine提供的Memcache服务,但无法弄清楚如何连接到它。我已将config/environments/production.rb设置为使用内存缓存存储区:

config.cache_store = :mem_cache_store, ENV['MEMCACHE_SERVERS']

我为MEMCACHE_SERVERS变量设置什么值?我无法在Google Cloud Console或文档中的任何位置找到此文件。我能找到的唯一提示是“弹性环境不支持Memcache”,这没有使用。任何帮助,将不胜感激。

ruby-on-rails google-app-engine google-cloud-platform memcached
1个回答
0
投票

很遗憾,不再建议使用Memcache服务。我发现它仅适用于Python 2.7,Java 8和PHP 5。

您可以找到它的文档here

我希望它会有所帮助...

© www.soinside.com 2019 - 2024. All rights reserved.