如何从 Rails 标准环境连接到 Google 的 App Engine Shared Memache 服务?
How do I connect to Google's App Engine Shared Memache service from a Rails standard environment?
我在 Google Cloud 的 App Engine 标准环境中有一个 Rails 应用程序 运行。我希望能够连接到 App Engine 提供的 Memcache 服务,但我不知道如何连接到它。我已将 config/environments/production.rb
设置为使用内存缓存存储:
config.cache_store = :mem_cache_store, ENV['MEMCACHE_SERVERS']
我应该为 MEMCACHE_SERVERS
变量设置什么值?我在 Google 云控制台或文档中的任何地方都找不到它。我能找到的唯一花絮是 "Memcache is not supported for flex environments",它没有被使用。任何帮助将不胜感激。
很遗憾,不再推荐 Memcache 服务。我发现它仅适用于 Python 2.7、Java 8 和 PHP 5。
你可以找到它的文档here
我希望它能以某种方式帮助...
我在 Google Cloud 的 App Engine 标准环境中有一个 Rails 应用程序 运行。我希望能够连接到 App Engine 提供的 Memcache 服务,但我不知道如何连接到它。我已将 config/environments/production.rb
设置为使用内存缓存存储:
config.cache_store = :mem_cache_store, ENV['MEMCACHE_SERVERS']
我应该为 MEMCACHE_SERVERS
变量设置什么值?我在 Google 云控制台或文档中的任何地方都找不到它。我能找到的唯一花絮是 "Memcache is not supported for flex environments",它没有被使用。任何帮助将不胜感激。
很遗憾,不再推荐 Memcache 服务。我发现它仅适用于 Python 2.7、Java 8 和 PHP 5。
你可以找到它的文档here
我希望它能以某种方式帮助...