-
Notifications
You must be signed in to change notification settings - Fork 15.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
Add redis storage #8980
Add redis storage #8980
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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.
2 optional nits, lgtm!
|
||
self.ttl = ttl | ||
self.namespace = namespace | ||
self.namespace_delimiter = "/" |
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.
worth making this configurable? if not, does it need to be stored as attribute (allows folks to mess with it)
""" | ||
|
||
def __init__( | ||
self, client: Any, *, ttl: Optional[int] = None, namespace: Optional[str] = None |
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.
could type hint client if you wanted to
Merging and following up with PR to address remaining issues (since they were not blocking) |
Add a redis implementation of a BaseStore