The
page your link points to recommends for PHP the use of the memcached extension. This extension is included in the PHP runtime. You only need to choose your configuration and set the configuration files as recommended in the "Connecting to Redis Labs Memcache" sub-chapter, on the same page.
In the appengine/flexible/memcache/app.yaml file, you choose appropriate settings as indicated on that page:
env_variables:
# If you are using the App Engine Memcache service (currently in alpha),
# uncomment this section and comment out the other Memcache variables.
# USE_GAE_MEMCACHE: 1
MEMCACHE_SERVER: your-memcache-server
# If you are using a Memcached server with SASL authentiation enabled,
# fill in these values with your username and password.
MEMCACHE_USERNAME: ""
MEMCACHE_PASSWORD: ""