【问题标题】:How to connect Google App Engine Memcache from remotely如何远程连接 Google App Engine Memcache
【发布时间】:2016-05-19 08:43:28
【问题描述】:

我的网络服务器上运行了一个 php 网络应用程序。 现在想外包memcache,想试试google cloud/app engine memcache服务。

如何从外部(从我的网络服务器)连接到 memcache 服务?这可能吗?

我在这里找到了有关如何使用该服务的文档 https://cloud.google.com/appengine/docs/php/memcache/#PHP_PHP_memcache_implementation

但是我没有看到任何关于如何远程连接到 memcache 服务的描述。

可能 Memcache::addServer() 可以完成这项工作 (http://php.net/manual/de/memcache.addserver.php) 但是,我在哪里可以找到连接到服务的正确设置(主机、端口等)?不过,我什至不确定这是否可能。

感谢您的建议 乔治

【问题讨论】:

    标签: php google-app-engine memcached


    【解决方案1】:

    这不是架构建议,甚至不是最佳实践。

    在 AE 环境中没有可连接到 memcahce 的托管端点。

    建立某种调试链接的唯一方法是通过 Web 服务公开getput,如下所述。

    Expose a web-service in appengine and connect remotely.  Secure it by oauth or encrytion.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多