Skip to main content

Module org_ticket_cache

Module org_ticket_cache 

Source
Expand description

Organisation-level ticket caching

Caches org-level tickets locally to avoid repeated API calls. Tickets are automatically refreshed when expired.

Structs§

CachedOrgTicket
Cached org ticket with metadata

Functions§

clear
Clear the cached org ticket
get_fresh_for_writes
Get a fresh org ticket for write operations
get_optional
Get org ticket if API key is configured, otherwise return None
get_or_refresh
Get a valid org ticket, fetching from API if needed
load
Load a cached org ticket from disk
refresh
Force refresh the org ticket from the API
store
Store an org ticket response to disk