Expand description
Cache module for guild channels.
This module provides caching functionality for guild channels using moka cache. It includes two caches:
GUILD_CHANNEL_LIST_CACHE: Caches the list of channels for each guild.GUILD_CHANNEL_CACHE: Caches individual guild channels.
The CacheArgs struct is used to retrieve channels from the cache or fetch them from the API if not found.
Structs§
- Cache
Args - Arguments for cache operations.
Statics§
- GUILD_
CHANNEL_ CACHE - Cache for individual guild channels, mapping channel IDs to their channel data.
- GUILD_
CHANNEL_ LIST_ CACHE - Cache for guild channel lists, mapping guild IDs to their channel lists.
Functions§
- channel_
cache 🔒 - Builds a cache with the shared tuning for both channel caches: 500 entries, TTL 12 hours, TTI 1 hour.