def _get_options(ret=None):
    attrs = {'host': 'host',
             'port': 'port'}

    _options = salt.returners.get_returner_options(__virtualname__,
                                                   ret,
                                                   attrs,
                                                   __salt__=__salt__,
                                                   __opts__=__opts__)
    return _options
Get the memcache options from salt.
dataset/ETHPy150Open saltstack/salt/salt/returners/memcache_return.py/_get_options