diff --git a/README.md b/README.md index 022fda6..11209d1 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,21 @@ client.trigger( ) ``` +## Cache Channels + +Publish to a channel named `cache-`, `private-cache-` or `presence-cache-` and Apinator keeps +the last event for 30 minutes, so a client that subscribes after the publish still receives it. +Nothing else changes: trigger as usual, and authorize private and presence cache channels like +any other private or presence channel. + +```python +client.trigger( + "job-finished", + '{"status": "done"}', + channel=f"private-cache-job-{job_id}", +) +``` + ## Channel Authentication For private and presence channels, your backend must provide an auth endpoint: