php72 standard environment not support memcache?

170 views
Skip to first unread message

Hoang Van

unread,
Sep 3, 2018, 5:44:20 PM9/3/18
to Google App Engine
i tested with php55 for shared memcache, it worked. but not work for php72 standard enviroment. Why??
$mem=new Memcached();
$mem->set('a',10);
echo $mem->get('a');


David (Google Cloud Support)

unread,
Sep 4, 2018, 4:37:18 PM9/4/18
to Google App Engine

Hello Hoang,


Unfortunately, App Engine Memcache support is not provided for PHP 7.2 as it is a second generation runtime which does not have access to proprietary App Engine APIs such as Memcache, but similar functionality can be achieved using Redis Labs Cloud as stated in Migrating your App from PHP 5.5 to PHP 7.2. However, there is a feature request Memcache for PHP 7.2 (standard). The current recommendation taken from the previous link is:


“Redis Labs provides both a redis and memcache interface, which you would access using their respective clients.”


“To use the redis protocol, please follow the guide at:” https://cloud.google.com/appengine/docs/standard/python3/using-redislabs-redis


“For the memcache protocol, while the documentation for App Engine Standard is not ready yet, you can follow around with the Flex documentation here:” https://cloud.google.com/appengine/docs/flexible/php/using-redislabs-memcache
Reply all
Reply to author
Forward
0 new messages