-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Would you like to support redis cluster in session? #1339
Comments
Hello @woody712, If your company uses redis and redis clusters then you can just create your custom redis sessiondb (see: https://github.com/kataras/iris/tree/master/sessions/sessiondb/redis for implementation) or edit the existing one, test and push a PR, I can do it but I can't directly test it, so i think it's better to let that for you or a co-worker of yours. |
redigo does not support cluster, it has another library for it. Radix can support and I already did it locally(update: pushed to master) but it is slow on scan with prefix (the method that sessiondb uses to fetch values)...I will see what I can do and we can compare our versions and push the better implementation one into Iris. |
@woody712 You can use clusters now with |
@kataras when I Use "SET" Action to store a large number of key - values at a time. it is slow or can not use "MSET" Action to store Struct for example
but radix code is clean with good feature for example |
Yes this is why it's used on |
@kataras for #1328
for 100000 key An optional count hint to send to redis to indicate number of keys to |
I saw this comment. |
Yeah @majidbigdeli thank you, I pushed the commit. The COUNT is 300 thousand and it iterates until cursor returned by redis is |
Thx all above |
Former-commit-id: d748d1e19a29851abbbfc0264fd04c462158b645
Though the connection pool of inner built is enough in most conditions, I still want to use sessions with redis cluster, because of my company's existing cluster
The text was updated successfully, but these errors were encountered: