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>
2024-06-11 14:08:05 +00:00
..
__init__.py community[minor]: Add SQL storage implementation (#22207) 2024-06-07 21:17:02 +00:00
astradb.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
cassandra.py community[minor]: Add Cassandra ByteStore (#22064) 2024-05-23 10:46:23 -04:00
exceptions.py core[minor],langchain[patch],community[patch]: Move storage interfaces to core (#20750) 2024-04-30 13:14:26 -04:00
mongodb.py add mongodb_store (#13801) 2024-02-13 22:33:22 -05:00
redis.py community[minor]: fix redis store docstring and streamline initialization code (#22730) 2024-06-11 14:08:05 +00:00
sql.py community[minor]: Add SQL storage implementation (#22207) 2024-06-07 21:17:02 +00:00
upstash_redis.py multiple[patch]: fix deprecation versions (#18349) 2024-02-29 16:58:33 -08:00