Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

feat: impliment NullCache #710

Merged
merged 3 commits into from
Nov 1, 2022
Merged

feat: impliment NullCache #710

merged 3 commits into from
Nov 1, 2022

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

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

  • Implement NullCache
  • Add NullCache to create_cache
  • Add NullCache detection to sanity checks
  • Add NullCache to debug ext
  • Minor refactor of debug ext caching suite

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls LordOfPolls merged commit 6d021df into 2.x Nov 1, 2022
@LordOfPolls LordOfPolls deleted the NullCache branch November 1, 2022 06:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants