def ttl ( self ) : ret = 3600 cn = self . get_process ( ) if "ttl" in cn : ret = cn [ "ttl" ] return ret
python how to get the ttl
how long you should cache results for cacheable queries
def ttl(self):
        """how long you should cache results for cacheable queries"""
        ret = 3600
        cn = self.get_process()
        if "ttl" in cn:
            ret = cn["ttl"]
        return ret