AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
web2py supports both session and memcache. To enable sessions simply do from gluon.contrib.gql import * db=GQLDB() session.connect(request,response,db) To enable memcache from gluon.contrib.gae_memcache import MemcacheClient cache.ram=cache.disk=MemcacheClient() Then every program/example that uses sessions or cache will work on gae without additional tweaks. For example: def index(): import time if not session.c: session.c=0 session.c+=1 return dict(counter=session.c, time=cache.ram('time',lambda:time.ctime(),5))
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.