Remora / Remora.Discord

A data-oriented C# Discord library, focused on high-performance concurrency and robust design.
GNU Lesser General Public License v3.0
246 stars 44 forks source link

Implement token-scoped cache keys #289

Open Nihlus opened 1 year ago

Nihlus commented 1 year ago

This PR implements simple scoping for the cache library in order to keep data belonging to different tokens separate.

In its current state, it is not a complete implementation since tokens provided via customizations onto single REST requests will not be picked up, and that mechanism may need some more in-depth changes. Consider this a design suggestion out for comments.

Fixes #257.