Can't you just use cache.memcache for memcache and cache.ram/cache.disk as usual? The example in the book re-assigns cache.ram and cache.disk to point to cache.memcache, but I don't think that is required. Try just leaving that line out.
Anthony On Wednesday, May 16, 2012 5:40:50 AM UTC-4, Robert Clark wrote: > > > Is there a way to configure both MemcacheClient and the built-in cache at > the same time? > > We would like to use built-in cache to hold singleton or short-life python > objects across requests (being a process-only cache it suits well) and > Memcache for everything else (sessions and expensive-to-create application > data). It looks like we could configure memcache as described in the > web2py book, so we're really after a way make another process-only cache > available for selective use. > > Thanks, > Rob