cache_content_set

cache_content_set(
    cache: AbstractCache | None,
    key: str,
    content: str | list[dict[str, Any] | str] | None,
    *extra_values
) -> 

Sets content into the cache.

Parameters:
NameDescription
cacheThe cache to set the content into.

If None, the cache is ignored.

Type: AbstractCache | None
keyThe key to set the content into.

Type: str
contentThe message content to set into the cache.

Type: str | list[dict[str, typing.Any] | str] | None
*extra_valuesAdditional values to be passed to the cache.