get_attachment_key method

get_attachment_key

Returns unique identifier for the cache entry that represents attachment file.

def get_attachment_key(cls, attachment_id):
    ...
Parameter Type Description
attachment_id str Unique (in context of single file) identifier of the attachment.

Returns: str: Unique identifier for the cache entry that represents attachment file.

Raises Description
ValueError Thrown when attachment_id is null or empty.

See Also