Skip to content

Conversation

maxg-square
Copy link
Contributor

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

2/3 for caching changes.
Big-picture PR here: #587
Design doc: https://docs.google.com/document/d/1CLhFbzZGbEKgvZTUwLuGbFY-rfZNJVTi6f3PkoZT9qI/edit?usp=sharing

  • 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 EnvironmentSnapshot, 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.

@maxg-square maxg-square marked this pull request as ready for review July 25, 2025 16:33
@maxg-square maxg-square requested a review from a team as a code owner July 25, 2025 16:33
@maxg-square maxg-square changed the title CacheStorage CacheStorage (2/3) Jul 25, 2025
@maxg-square maxg-square force-pushed the maxg/cache_2_envcache branch from 5d53aa4 to 84fe9bb Compare July 31, 2025 19:13
* maxg/cache_1_equivalency:
  Release 6.3.0
  Assert in debug mode when large content viewer is not placed inside an interaction container
  Expose largeContentViewerInteraction on LargeContentViewer backing view via protocol
  Stopped installing xcodes in GitHub Actions file
  chore: Release 6.2.0
  Support accessibility large content viewer
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