Closed as not planned
Description
Feature request discussed in #17176
Expand cache
to accept a cache implementation in addition to a bool value:
If provided, will use the given cache.
Acceptance Criteria
- Documentation to the cache variable to explain how it can be used
- Update https://python.langchain.com/docs/modules/model_io/chat/chat_model_caching
- Include unit tests to test given functionality
PR can include implementation for caching of LLMs in addition to chat models.