def _get_memcache_timeout(self, timeout):
    """
    Memcached deals with long (> 30 days) timeouts in a special
    way. Call this function to obtain a safe value for your timeout.
    """
timeout = timeout or self.default_timeout
if timeout > 2592000:
    pass
В Django/python, как установить кэш памяти на бесконечное время?