Some of the information here may be outdated, please check the book instead

web2py has a built-in caching mechanism but, since version 1.26, it also includes the memcache client

Assuming memcache is running on locahost on port 11211, somewhere in your code, before you use it, do

 from gluon.contrib.memcache import MemcacheClient

then use cache.mem instead of cache.ram and cache.disk according to the caching examples.

Support for memcache is "experimental", so please let us know if it works.

© 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.