xhroot / appengine-redis

Demo of Sockets API for Google App Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

appengine-redis

You can either run this on the local dev_appserver or you can deploy it. Once running, you can fetch values with GETs. This method uses r.get() to retrieve values from the remote Redis installation:

$ curl -w '\n' 'http://yourappname.appspot.com?igor'                        
igor="IT WORKS!"<br>                                                        

Use PUT to add/update values. This method uses r.set():

$ curl -w '\n' 'http://yourappname.appspot.com' -X PUT -d 'proj=treadstone' 
                                                                            
$ curl -w '\n' 'http://yourappname.appspot.com?igor&proj'                   
proj="treadstone"<br>igor="IT WORKS!"<br>                                   

Use DELETE - r.delete() - to remove values:

$ curl -w '\n' 'http://yourappname.appspot.com?igor' -X DELETE              
                                                                            
$ curl -w '\n' 'http://yourappname.appspot.com?igor&proj'                   
proj="treadstone"<br>igor="None"<br>    

About

Demo of Sockets API for Google App Engine


Languages

Language:Python 100.0%