twilight-rs / cache

WIP Entity/repository-based cache implementation for Twilight.
ISC License
5 stars 3 forks source link

Trait to update cache #5

Closed zeylahellyer closed 4 years ago

zeylahellyer commented 4 years ago

Add a trait to the base crate to define updating a cache from something like an event.

This allows implementing updates for any gateway event, or a guild create struct, etc.

zeylahellyer commented 4 years ago

Closed by https://github.com/rarity-rs/cache/commit/4e8580812c9f97b974ea199e95fdf292cd294aa8