dcclib_rest_api ¶
cache ¶
delete_dcc ¶
delete_dcc(dcc_id)
Delete a DCC from the cache. :param dcc_id: id of the DCC. :raises HTTPError: if the DCC is not found.
get_dcc ¶
get_dcc(dcc_id, expire_time=False)
Get a DCC from the cache. :param dcc_id: id of the DCC. :param expire_time: whether to return the expiry time. :return: the DCC or a tuple of the DCC and the expiry time. :raises HTTPError: if the DCC is not found.
has_dcc ¶
has_dcc(dcc_id)
Check if a DCC exists in the cache. :param dcc_id: id of the DCC. :return: whether the DCC exists.