I created 2 gears, php-5.4 and nodejs+redis.
我创建了2个齿轮,php-5.4和nodejs + redis。
How do I connect with Redis from my PHP gear? Where do I change the configuration?
如何从我的PHP设备连接Redis?我在哪里更改配置?
I am using this redis cartridge:
我正在使用这个redis墨盒:
https://github.com/smarterclayton/openshift-redis-cart
1 个解决方案
#1
You need to create your nodejs + redis application as a scaled application, that way redis will be on it's own gear, then you can use the supplied connection credentials to connect to it from your php gear.
你需要创建你的nodejs + redis应用程序作为缩放应用程序,这样redis将在它自己的设备上,然后你可以使用提供的连接凭证从你的php设备连接到它。
#1
You need to create your nodejs + redis application as a scaled application, that way redis will be on it's own gear, then you can use the supplied connection credentials to connect to it from your php gear.
你需要创建你的nodejs + redis应用程序作为缩放应用程序,这样redis将在它自己的设备上,然后你可以使用提供的连接凭证从你的php设备连接到它。