Using memcache inside Google Compute Engine with PHP

故事扮演 提交于 2019-12-04 05:20:44

Google App Engine provides a hosted Memcache service while Google Compute Engine does not.

On App Engine, the connection to the server is made automatically for the app running on App Engine, which means you don't need to specify a host/port in the app.

On Compute Engine, however, if you want to use memcache, you will need to run your own memcached server, either in the same or different VM as your application, and specify its host/port in your PHP client.

PHP provides two classes to connect to memcached:

Each provides a method to specify server(s) to connect to, e.g.,

but it's still up to you to run these memcached servers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!