NAFTeam / NAFF

A Python API wrapper for Discord
https://naff.info
MIT License
117 stars 24 forks source link

feat: impliment NullCache #710

Closed LordOfPolls closed 1 year ago

LordOfPolls commented 1 year ago

What type of pull request is this?

Description

Implements a NullCache object. This is effectively a cache that is used for a completely disabled cache. This cache will not store anything, and will always return None. This is done to aid in debugging, and ease of cache disabling. The existing solution would simply create a TTLCache that will discard data constantly, which isn't overly user friendly or performant

Changes

Checklist