-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
memory cached Retained
#33
Comments
Oh you mean caching all the retained messages like we do the tree of subscriptions? |
Would this be a fixed size cache? |
yea, in the simplest form all the hash can be inside an javascript object, so instead of HGETing
We can use a Bounded list, or even warn the user to turn off caching in a retained heavy environment. |
@behrad how would you keep that cache updated? |
on Let me create a simple PR to show this... |
What about a caching option to cache the
retained
hash key inside memory @mcollina ?This way
createRetainedStream
won't touch redis on each CONNECT, I believe this really improves on a crowded environment. What dya think @GavinDmello ?The text was updated successfully, but these errors were encountered: