19 lines
555 B
Markdown
19 lines
555 B
Markdown
# 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:
|
|
|
|
```python
|
|
client.cache.clear()
|
|
```
|
|
|
|
## Next Steps
|
|
|
|
- [Components](using_components.md)
|
|
- [Slash Commands](slash_commands.md)
|
|
- [Voice Features](voice_features.md)
|
|
|