php-docs-samples/appengine/php55/memcache at php72-scripts · hadinem/php-docs-samples · GitHub
Skip to content

Latest commit

 

History

History
 
 

README.md

Memcache and Google App Engine

This sample application demonstrates how to use memcache with Google App Engine.

Prerequisites

  • Install composer
  • Install dependencies by running:
$ composer install

Deploy to App Engine

Prerequisites

Deploy with gcloud

$ gcloud config set project YOUR_PROJECT_ID
$ gcloud app deploy

Store and retrieve values from the cache.

$ echo hello > hello.txt
$ echo bye > bye.txt
$ curl http://{YOUR_PROJECT_ID}.appspot.com/memcache/a
# Store the value hello in /a.
$ curl http://{YOUR_PROJECT_ID}.appspot.com/memcache/a -T hello.txt
$ curl http://{YOUR_PROJECT_ID}.appspot.com/memcache/a
hello