-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add Redis
Session driver
#621
Add Redis
Session driver
#621
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now the architecture looks good !
Hi ! |
@girardinsamuel @josephmancuso OK I think this is completed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I gave it a code review. Just some things I saw and some comments to make the code more similar to our other features
Hi @circulon, thank you again for your contribution. Note: i have seen it's partially done, so it should just be adding some missing type hints on some methods. |
Hi @girardinsamuel Yeah my project requires Redis for the cache and I use a thitf party auth system so internal lookups to validate the user token are just not feasible. As the Redis Cache driver was already built it was just a matter of reworking that driver to fit the way Sessions work. Regarding Type hinting I have added most of them. There are a couple of methods like "set" that I'm not exactly sure of the return type so any pointers would be appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are missing type hints to help you.
For some return types you have to look at redis methods return type to know what is the type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final review ! Looks good to me.
@josephmancuso I guess we can merge this now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final code review looks good
This is an initial implementation of a driver for Redis backed sessions
@josephmancuso @girardinsamuel
Interested in your opinions on how I have implemented this
Tests are not built yet.... coming soon