Skip to content
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

Add a sorted set container type #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add a sorted set container type #3

wants to merge 6 commits into from

Conversation

adamwight
Copy link
Owner

This implements IndexedKeyValueStore

Bug: https://phabricator.wikimedia.org/T99152

Adam Roses Wight added 4 commits May 29, 2015 09:58
This implements IndexedKeyValueStore

Bug: T99152
This prevents collisions between queues containing elements with the same key.
@@ -6,7 +6,19 @@
use PHPQueue\Interfaces\FifoQueueStore;

Choose a reason for hiding this comment

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

Nice!! Just a few minor comments:

  • Maybe be a little more consistent with terminology? For example, in the PHPdoc on line 11, you talk about a key-value store, but in the exception messages in push() you use "zset".
  • A good approach might be to mention in the PHPdoc that this is backed by a Redis zset... and also maybe note that that's the origin of the term "score".
  • A bit more inline comments explaining the why of some stuff would be cool, I think... Since I'm not looking at the whole codebase I'm not sure what's obvious and what's not, but... it does feel like there could be more inline explanations.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good point about "score", I'm hiding that detail in favor of "order key" which should be more descriptive.

Adam Roses Wight added 2 commits June 3, 2015 18:09
Change-Id: I1e7f27103bcdbf646a1bed9dda4f066090462359
Change-Id: I94c886cd6e361128069a6c2bd6b8da533310a2af
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