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
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 aTTLCache
that will discard data constantly, which isn't overly user friendly or performantChanges
create_cache
Checklist
Python 3.10.x