简体   繁体   English

如何在Google App Engine上安装/使用PhpRedis?

[英]How do I install/use PhpRedis on Google App Engine?

我想在Google App Engine上使用超快速的PhpRedis,如果可能的话,该怎么办?

PhpRedis is a PHP extension, and it is not on currently supported on App Engine. PhpRedis是PHP扩展,目前App Engine不支持。

For reference https://github.com/phpredis/phpredis 供参考https://github.com/phpredis/phpredis

https://cloud.google.com/appengine/docs/php/#PHP_Enabled_extensions https://cloud.google.com/appengine/docs/php/#PHP_Enabled_extensions

There is a PHP implementation which uses sockets and covers basic redis commands. 有一个使用套接字的PHP实现,涵盖了基本的redis命令。 But without knowing your use case it's difficult to recommend. 但是在不知道用例的情况下,很难推荐。

Tom 汤姆

You can enable PhpRedis on App Engine with PHP 7.2 (beta) in the Standard Environment through Dynamically Loadable Extensions . 您可以通过动态可加载的扩展程序在标准环境中的PHP 7.2(测试版)的App Engine上启用PhpRedis。

Add extension=redis.so to app.yaml to enable it. extension=redis.so添加到app.yaml以启用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM