Web2Pyers, What the appropriate way to use cache.ram? Let's say I want to cache an object (in my case its a cStringIO). In my controller function -->
def makeMe(): x = cStringIO.StringIO() cache.ram("myObj", lambda: x, 5) def getMe(): x = cache.ram.storage['myObj'][1] response.headers['Content-Type']='image/png' response.stream(x) While this works, am I missing something? Also is the cache object unique for each session? Does Web2py have any concept of a shared cache for all sessons? Thanks, Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---