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

use Redis::PooledClient instead of own pool implementation #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mamantoha
Copy link

No description provided.

@neovintage
Copy link
Owner

Thanks for the pull request @mamantoha!

I'll check it out soon and provide any feedback.

@neovintage neovintage self-requested a review September 27, 2022 14:16
Copy link
Owner

@neovintage neovintage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall PR looks great! Added a comment about initialization. Would love to figure that part out.

else
@redis = pool.as(ConnectionPool(Redis))
end
def initialize(host = "localhost", port = 6379, password = nil, database = 0, capacity = 20, timeout = 2.0, unixsocket = nil, key_prefix = "kemal:session:")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you removed pool as an argument. My only piece of feedback is if someone wants to use a shared pool client across their entire application, they won't be able to pass that in.

What are your thoughts about adding that back in?

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

Successfully merging this pull request may close these issues.

2 participants