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

Add redis storage #8980

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Add redis storage #8980

merged 2 commits into from
Aug 10, 2023

Conversation

eyurtsev
Copy link
Collaborator

@eyurtsev eyurtsev commented Aug 9, 2023

Add a redis implementation of a BaseStore

@vercel
Copy link

vercel bot commented Aug 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2023 5:04pm

@dosubot dosubot bot added the 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features label Aug 9, 2023
Copy link
Collaborator

@baskaryan baskaryan left a 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 = "/"
Copy link
Collaborator

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
Copy link
Collaborator

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

@eyurtsev eyurtsev merged commit d21333d into master Aug 10, 2023
@eyurtsev eyurtsev deleted the eugene/add_redis_storage_v2 branch August 10, 2023 14:48
@eyurtsev
Copy link
Collaborator Author

Merging and following up with PR to address remaining issues (since they were not blocking)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants