On http://blog.caucho.com/?p=196, they have made Quercus run App Engine's datastore with PHP. Their source is at http://wordpress-on-quercus.appspot.com/wordpress-on-gae-quercus.zip
在http://blog.caucho.com/?上p=196,他们用PHP让Quercus运行应用程序引擎的数据存储。他们的源代码位于http://wordpress-quercus.appspot.com/wordpress-on -gae-quercus.zip。
I would like to do something similar with their Google App Engine's memcache, preferably all in the PHP code since Quercus has the "import" command allowed within the PHP code.
我想做一些类似于他们的谷歌应用程序引擎的memcache,最好是在PHP代码中,因为Quercus拥有PHP代码中允许的“import”命令。
1 个解决方案
#1
1
I solved it.
我解决它。
<?php
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
$service = MemcacheServiceFactory::getMemcacheService();
$service->put("key", "this is the value");
echo $service->get("key"); // outputs "this is the value"
#1
1
I solved it.
我解决它。
<?php
import com.google.appengine.api.memcache.MemcacheService;
import com.google.appengine.api.memcache.MemcacheServiceFactory;
$service = MemcacheServiceFactory::getMemcacheService();
$service->put("key", "this is the value");
echo $service->get("key"); // outputs "this is the value"