You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/storage
Jaeyeon Kim(김재연) ce4e29ae42
community[minor]: fix redis store docstring and streamline initialization code (#22730)
Thank you for contributing to LangChain!

### Description

Fix the example in the docstring of redis store.
Change the initilization logic and remove redundant check, enhance error
message.

### Issue

The example in docstring of how to use redis store was wrong.

![image](https://github.com/langchain-ai/langchain/assets/37469330/78c5d9ce-ee66-45b3-8dfe-ea29f125e6e9)

### Dependencies
Nothing



- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.


- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
3 months ago
..
__init__.py community[minor]: Add SQL storage implementation (#22207) 3 months ago
astradb.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 4 months ago
cassandra.py community[minor]: Add Cassandra ByteStore (#22064) 4 months ago
exceptions.py core[minor],langchain[patch],community[patch]: Move storage interfaces to core (#20750) 4 months ago
mongodb.py add mongodb_store (#13801) 7 months ago
redis.py community[minor]: fix redis store docstring and streamline initialization code (#22730) 3 months ago
sql.py community[minor]: Add SQL storage implementation (#22207) 3 months ago
upstash_redis.py multiple[patch]: fix deprecation versions (#18349) 6 months ago