shuppet / raku-api-discord

Raku module for interacting with the Discord API.
https://shuppet.com
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

Caches don't necessarily work #29

Open kawaii opened 5 years ago

kawaii commented 5 years ago

the API object caches guilds and channels but these don't necessarily work correctly

Altreus commented 4 years ago

We can use https://github.com/lizmat/ObjectCache on the ButReals.

Then we can use the new EVICT behaviour to force a re-fetch if necessary.

This will then just straight up cache everything. Nice.

Altreus commented 4 years ago

Put this back as enhancement because also I think it works OK now.