1. 
*How to deploy Web2Py+Memcache on GAE *
   2. *How does one configure and also monitor the memcache server on GAE 
   from web2py?*

The description and details *here* 
<http://www.web2py.com/books/default/chapter/29/13/deployment-recipes?search=MEMCACHE#Memcache>
 
are not enough or clear or explanative for a beginner.



For a *model* like this, *how to implement Memchache on GAE* for the *table 
'Articles'*?


if request.env.web2py_runtime_gae
    htmlDB = DAL('google:datastore')
    AuthDB = DAL('google:datastore')
    *session.connect(request, response, db=AuthDB) #???*

    *from gluon.contrib.gae_memcache import MemcacheClient*
*    from gluon.contrib.memdb import MEMDB*
*    cache.memcache = MemcacheClient(request)*
*    cache.ram = cache.disk = cache.memcache*
*    session.connect(request,response,db=MEMDB(cache.memcache.client))** 
#???*

else:
    htmlDB = 
DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
    AuthDB = 
DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])

from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
*auth = Auth(AuthDB) #???*
crud, service, plugins = Crud(htmlDB), Service(), PluginManager()
auth.define_tables(username=False, signature=False)

*htmlDB.define_table('Articles'*,
    Field('Title'),
    Field('Abstract', 'text', label="Enter Abstract"),
    Field('Author'),
    format='%(Title)s')


 Objective: *To cache the 'Articles' in Memcache in GAE*.

 

 



EOM 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to