andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
496 stars 70 forks source link

Make the cache simpler, seriously #398

Closed andersfylling closed 3 years ago

andersfylling commented 3 years ago

Description

I've come to realize I don't have the time to maintain some complex cache implementation, so I'm simplifying it to make it easier to read / maintain. Performance is not negatively affected. This time I'm adding test cases for different scenarios, even deadlock testing, in hope that we can get some more stability.

This should also help contributors.

fixes https://github.com/andersfylling/disgord/issues/396

Type of change

Checklist: