Skip to content

Prevent cache key collisions - #15

Open
simPod wants to merge 1 commit into
masterfrom
fix/cache-key-collisions
Open

Prevent cache key collisions#15
simPod wants to merge 1 commit into
masterfrom
fix/cache-key-collisions

Conversation

@simPod

@simPod simPod commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Encode scalar and array cache keys with type information.
  • Preserve safe identity for top-level and nested objects.
  • Reject resource and recursive array keys explicitly.
  • Document the default cache key constraints.

Motivation

PHP array coercion and JSON serialization could make distinct keys share one cached promise. Object hashes could also be reused after object destruction.

@simPod
simPod force-pushed the fix/cache-key-collisions branch from 0f1c88c to 245f96d Compare August 18, 2026 07:24
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