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

MemoryStore middleware doesn't care about channel #34

Closed
matteosuppo opened this issue Feb 26, 2013 · 1 comment
Closed

MemoryStore middleware doesn't care about channel #34

matteosuppo opened this issue Feb 26, 2013 · 1 comment

Comments

@matteosuppo
Copy link

The memorystore middleware save everything in the array models.

If you have two collections with a different channel they will get the same models from the memorystore middleware.

Is it a bug?
Is there something I don't get about the channel option?

I changed the way it works for me, if there's a channel saves and retrieves models in the models[channel] array. If there's no channel it saves them in the models['default'] array.

@scttnlsn
Copy link
Owner

Yeah, the included memory story is really just an example. You would almost always customize the backend to suit your specific needs. Channels only come into play when notifying clients of updates...if you only want to return a subset of your models when a client is reading a list of models then you need to perform some kind of filtering in your backend. It sounds like you're on the right track with the models[channel] approach.

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