Skip to content

feat: add prefix key matching to QoraClient.invalidate() (#23) - #43

Open
donfreddy wants to merge 1 commit into
mainfrom
feat/prefix-key-matching-23
Open

feat: add prefix key matching to QoraClient.invalidate() (#23)#43
donfreddy wants to merge 1 commit into
mainfrom
feat/prefix-key-matching-23

Conversation

@donfreddy

Copy link
Copy Markdown
Collaborator

Closes #23

Description

Adds a prefix named parameter to QoraClient.invalidate() that matches all query keys starting with the given prefix, removing the need for custom predicate callbacks.

Changes

  • QoraClient.invalidate({Object? key, List<dynamic>? prefix}): key is now a named parameter (backward compat via internal callers), new prefix parameter for bulk invalidation
  • _matchesPrefix static helper for prefix comparison with edge cases (empty prefix, longer prefix, mixed types)
  • Tests (7 test cases): exact match, single-element prefix, empty prefix, no-match, mixed types
  • Docs EN/FR updated: API reference for invalidate
  • Updated all internal/external callers across packages (hooks, devtools, examples)

@donfreddy
donfreddy force-pushed the feat/prefix-key-matching-23 branch from e63c3fa to 9987518 Compare July 15, 2026 05:46
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.

feat: add prefix key matching for cache operations

1 participant