tulpje-cache 0.4.0

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

use crate::{Cache, Error, UpdateCache};

impl UpdateCache for PresenceUpdate {
    async fn update(&self, cache: &Cache) -> Result<(), Error> {
        cache.cache_presence(self.guild_id, self.0.clone()).await
    }
}