@classmethod
def from_container(cls, application_id, container):
    """
        Memcached provided by a container.
        """
    return cls(key_prefix=application_id, hosts=['{host}:{port}'.format(**
        container.__dict__)])
