gpt4 book ai didi

java - 如何将 Google App Engine 内存缓存与 Quercus 一起使用?

转载 作者:搜寻专家 更新时间:2023-10-31 21:45:06 24 4
gpt4 key购买 nike

关于 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com