3

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 代码中允许“导入”命令。

4

1 回答 1

1

我解决了。

<?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"
于 2011-02-20T00:03:45.787 回答