tulpje-cache 0.4.0

A redis cache for twilight
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use twilight_model::gateway::payload::incoming::GuildStickersUpdate;

use crate::UpdateCache;

impl UpdateCache for GuildStickersUpdate {
    async fn update(&self, cache: &crate::Cache) -> Result<(), crate::Error> {
        cache
            .cache_stickers(self.guild_id, self.stickers.clone())
            .await?;
        Ok(())
    }
}