def __virtual__():
    if HAS_MEMCACHE:
        return __virtualname__
    return (False, 'The memcached execution module cannot be loaded: '
            'python memcache library not available.')
Only load if python-memcache is installed
dataset/ETHPy150Open saltstack/salt/salt/modules/memcached.py/__virtual__