duansen6750 2016-05-19 08:43
浏览 105
已采纳

如何从远程连接Google App Engine Memcache

I have a php webapplication running on my webserver. Now I want to outsource the memcache and would like to try the google cloud/app engine memcache service.

How do I connect to the memcache service from outside (from my webserver)? Is that possible at all?

I found the documentation on how to use the service here https://cloud.google.com/appengine/docs/php/memcache/#PHP_PHP_memcache_implementation

But I don't see any description on how to connect to the memcache service remotely.

Probably Memcache::addServer() would do the job (http://php.net/manual/de/memcache.addserver.php) But, where do I find the right settings (host, port, etc) to connect to the service? Still, I am not even sure if this is possible at all.

Thanks for any advice Georg

  • 写回答

1条回答 默认 最新

  • dongtan5811 2016-05-19 09:36
    关注

    This is not an architectural advise or even a best practise.

    There is no managed endpoint to connect to memcahce in AE environment.

    The only way to establish some sort of a link to debug is to expose the get and the put via web service as mentioned below.

    Expose a web-service in appengine and connect remotely.  Secure it by oauth or encrytion.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元