[PR #4486] Cache nodes/tasks #3854

Closed
opened 2026-02-20 17:49:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/4486

State: closed
Merged: Yes


  • BaseCache interface defines the base class for cache storage adapters
  • FileCache implements BaseCache with filesystem-backed storage
  • Provide default cache key implementation which hashes args with pickle
  • Update PregelExecutableTask with cache_key property for tasks that opt-in to caching
  • Update PregelLoop, PregelRunner to get/set from cache as appropriate

TODO

  • Call match_cached_writes in async PregelRunner
  • Implement RedisCache to use in LGP
  • Add more tests
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/4486 **State:** closed **Merged:** Yes --- - BaseCache interface defines the base class for cache storage adapters - FileCache implements BaseCache with filesystem-backed storage - Provide default cache key implementation which hashes args with pickle - Update PregelExecutableTask with cache_key property for tasks that opt-in to caching - Update PregelLoop, PregelRunner to get/set from cache as appropriate TODO - [x] Call match_cached_writes in async PregelRunner - [ ] Implement RedisCache to use in LGP - [x] Add more tests
yindo added the pull-request label 2026-02-20 17:49:16 -05:00
yindo closed this issue 2026-02-20 17:49:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#3854