1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[21769],{8667:(e,c,s)=>{s.d(c,{R:()=>t,x:()=>a});var i=s(22155);const n={},o=i.createContext(n);function t(e){const c=i.useContext(o);return i.useMemo(function(){return"function"==typeof e?e(c):{...c,...e}},[c,e])}function a(e){let c;return c=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:t(e.components),i.createElement(o.Provider,{value:c},e.children)}},70518:(e,c,s)=>{s.r(c),s.d(c,{assets:()=>h,contentTitle:()=>a,default:()=>l,frontMatter:()=>t,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"sidekick-studio/chatflows/cache/README","title":"Cache","description":"LangChain Cache Nodes","source":"@site/docs/sidekick-studio/chatflows/cache/README.md","sourceDirName":"sidekick-studio/chatflows/cache","slug":"/sidekick-studio/chatflows/cache/","permalink":"/docs/sidekick-studio/chatflows/cache/","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"description":"LangChain Cache Nodes"},"sidebar":"docs","previous":{"title":"Tool Agent","permalink":"/docs/sidekick-studio/chatflows/agents/tool-agent"},"next":{"title":"InMemory Cache","permalink":"/docs/sidekick-studio/chatflows/cache/in-memory-cache"}}');var n=s(65723),o=s(8667);const t={description:"LangChain Cache Nodes"},a="Cache",h={},d=[{value:"Cache Nodes",id:"cache-nodes",level:3}];function r(e){const c={a:"a",h1:"h1",h3:"h3",header:"header",hr:"hr",li:"li",p:"p",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.header,{children:(0,n.jsx)(c.h1,{id:"cache",children:"Cache"})}),"\n",(0,n.jsx)(c.hr,{}),"\n",(0,n.jsxs)(c.p,{children:["Caching can save you money by reducing the number of API calls you make to the LLM provider, if you're often requesting the same completion multiple times. It can speed up your application by reducing the number of API calls you make to the LLM provider.\r\n",(0,n.jsx)(c.a,{href:"https://js.langchain.com/v0.2/docs/how_to/llm_caching/",children:"LangChain Cache Nodes"})]}),"\n",(0,n.jsx)(c.h3,{id:"cache-nodes",children:"Cache Nodes"}),"\n",(0,n.jsxs)(c.ul,{children:["\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/in-memory-cache",children:"InMemory Cache"})}),"\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/inmemory-embedding-cache",children:"InMemory Embedding Cache"})}),"\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/momento-cache",children:"Momento Cache"})}),"\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/redis-cache",children:"Redis Cache"})}),"\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/redis-embeddings-cache",children:"Redis Embeddings Cache"})}),"\n",(0,n.jsx)(c.li,{children:(0,n.jsx)(c.a,{href:"/docs/sidekick-studio/chatflows/cache/upstash-redis-cache",children:"Upstash Redis Cache"})}),"\n"]})]})}function l(e={}){const{wrapper:c}={...(0,o.R)(),...e.components};return c?(0,n.jsx)(c,{...e,children:(0,n.jsx)(r,{...e})}):r(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.