Skip to content

CacheStorage #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: maxg/cache_1_equivalency
Choose a base branch
from
Draft

Conversation

maxg-square
Copy link
Contributor

@maxg-square maxg-square commented Jul 16, 2025

2/3 for caching changes.
Big-picture PR here: https://github.com/square/Blueprint/pull/574/files

  • Adds CacheStorage, an object which hangs off of Environment. CacheStorage has a similar API to Environment, with consumers declaring their types and default values by declaring a CacheKey.
  • Adds internal values to Environment which do not participate in ContextuallyEquivalent checks.
  • Adds FrozenEnvironment, which is a snapshot of an Environment that holds a subset of its storage, and is used by ValidatingCache.
  • Adds ValidatingCache, which allows a key to be set with a value that's associated with a validation function.
  • Adds EnvironmentValidatingCache and EnvironmentAndValueValidatingCache, which are simplified interfaces to ValidatingCache which provide additional comparison of Environment contexts.
  • Logging and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant