tiled.client.cache.Cache.set

Cache.set(*, request: Request, response: Response, content: bytes | None = None) None[source]

Set new response entry in cache.

In case the response does not yet have a ‘_content’ property, content should be provided in the optional ‘content’ kwarg (usually using a callback)

Parameters:
request: httpx.Request
response: httpx.Response, to cache
content (bytes, optional): Defaults to None, should be provided in case

response that not have yet content.