WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@tadfisher
Copy link

These might be useful to avoid returning stale entries if we are selecting by key.

Copilot AI review requested due to automatic review settings August 21, 2025 21:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds two new methods to the KeyValueStorage class to enable efficient key-based selection while returning metadata-rich ResultRow objects instead of just the entity values.

  • Adds selectResultByKey() for single key selection returning a ResultRow<T>?
  • Adds selectResultByKeys() for multiple key selection with optional ordering and expiration filtering
  • Both methods leverage indexed key lookups for better performance compared to where clause queries
Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

3 participants