关于 http://blog.caucho.com/?p=196 ,他们让 Quercus 使用 PHP 运行 App Engine 的数据存储。他们的来源是http://wordpress-on-quercus.appspot.com/wordpress-on-gae-quercus.zip
我想用他们的 Google App Engine 的内存缓存做一些类似的事情,最好是全部在 PHP 代码中,因为 Quercus 在 PHP 代码中允许使用“导入”命令。
最佳答案
我解决了。
<?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"
关于java - 如何将 Google App Engine 内存缓存与 Quercus 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4981971/