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 ttl to RedisCache #9068

Merged
merged 2 commits into from
Aug 14, 2023
Merged

add ttl to RedisCache #9068

merged 2 commits into from
Aug 14, 2023

Conversation

glaucocustodio
Copy link
Contributor

Add ttl (time to live) to RedisCache

@vercel
Copy link

vercel bot commented Aug 10, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 10:00am
langchain-deprecated ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 10:00am

@eyurtsev eyurtsev self-requested a review August 10, 2023 18:35
@dosubot dosubot bot added the 🤖:improvement Medium size change to existing code to handle new use-cases label Aug 10, 2023
libs/langchain/langchain/cache.py Outdated Show resolved Hide resolved
libs/langchain/langchain/cache.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@eyurtsev eyurtsev left a comment

Choose a reason for hiding this comment

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

@glaucocustodio Thanks for the code contribution! I think it makes sense to add a ttl.

Requested a few minor changes, when you're ready could you request a re-review?

@glaucocustodio
Copy link
Contributor Author

hey @eyurtsev, thanks for the review, I've done the requested changes, could you please take a look again?

Copy link
Collaborator

@eyurtsev eyurtsev left a comment

Choose a reason for hiding this comment

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

Looks great!

libs/langchain/langchain/cache.py Show resolved Hide resolved
@eyurtsev eyurtsev merged commit 89be10f into langchain-ai:master Aug 14, 2023
22 checks passed
toshish pushed a commit to toshish/langchain that referenced this pull request Aug 14, 2023
Add `ttl` (time to live) to `RedisCache`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants