How can I use memcache Google App Engine with Quercus?

At http://blog.caucho.com/?p=196 they made Quercus a running App Engine repository with PHP. Their source is at http://wordpress-on-quercus.appspot.com/wordpress-on-gae-quercus.zip

I would like to do something similar with their memcache of my App App App App, preferably everything in PHP code, since Quercus has the "import" command allowed in PHP code.

+3
source share
1 answer

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
source

Source: https://habr.com/ru/post/1791766/


All Articles