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 "multi-get" accessor #12

Open
cowtowncoder opened this issue Jan 3, 2012 · 0 comments
Open

Add "multi-get" accessor #12

cowtowncoder opened this issue Jan 3, 2012 · 0 comments

Comments

@cowtowncoder
Copy link
Owner

Sometimes it makes sense to get more than one entry, up to specified maximum, with one call.
Main benefit is that synchronization is only done once, and the obvious downside is that multiple byte result byte arrays need to be allocated.

Although variants could be added to allow timed waits and such it seems best to start with a simple call that does NOT block (if none available, return empty array), and which takes single count argument that specifies maximum number of entries to return.

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

No branches or pull requests

1 participant