Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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