disagreement/docs/caching.md
2025-06-09 22:25:14 -06:00

555 B

Caching

Disagreement ships with a simple in-memory cache used by the HTTP and Gateway clients. Cached objects reduce API requests and improve performance.

The client automatically caches guilds, channels and users as they are received from events or HTTP calls. You can access cached data through lookup helpers such as Client.get_guild.

The cache can be cleared manually if needed:

client.cache.clear()

Next Steps