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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch get #7

Open
Sljux opened this issue Sep 21, 2016 · 3 comments
Open

Batch get #7

Sljux opened this issue Sep 21, 2016 · 3 comments

Comments

@Sljux
Copy link

Sljux commented Sep 21, 2016

Hello, great lib you've got there 馃槂
Is there a way to do a batch get of cached items?
My use case is as follows:
I cache items by their id, and lists of ids. I read a list of ids from cache, and then all the items in the list. If I get items one by one I get to many roundtrips really fast.

@Sljux
Copy link
Author

Sljux commented Sep 21, 2016

I'm fairly confident this could be done in Redis with an MGET command and a hydration mapping, but I'm looking for your opinion.

@cpsubrian
Copy link
Owner

cpsubrian commented Oct 6, 2016

@Sljux glad you are getting some use out of stow. It's still chugging along nicely for my projects as well. I agree that a batch get by list of ids would absolutely be useful. I'm happy to review a PR but don't have the spare cycles to dive into it myself at the moment.

@cpsubrian
Copy link
Owner

Ideally it would be implemented such that backends that don't have a performant way to implement it could bow-out with an error.

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

2 participants