On Oct 12, 12:07 pm, David Marko <dma...@tiscali.cz> wrote: > Massimo adviced me to use something like this previsously: > > def make_connection(): > from pymongo import Connection > connection = Connection('localhost', 27017) > return connection > > connection = cache.ram('mongodb',make_connection,None)
Where do you put the make_connection function? And what about the connection variable?