def METHOD_NAME(ret):
    """
    Return data to a memcache data store
    """
    serv = _get_serv(ret)
    minion = ret["id"]
    jid = ret["jid"]
    fun = ret["fun"]
    rets = salt.utils.json.dumps(ret)
    serv.set("{}:{}".format(jid, minion), rets)  # cache for get_jid
    serv.set("{}:{}".format(fun, minion), rets)  # cache for get_fun
    # The following operations are neither efficient nor atomic.
    # If there is a way to make them so, this should be updated.
    _append_list(serv, "minions", minion)
    _append_list(serv, "jids", jid)