Meet Redis LangCache: A Managed Semantic Cache That Cuts LLM API Costs by Up to 90% and Returns Cache Hits Up to 15x Faster

2026年9月10日 22:34
站內 AI 整理稿

Production LLM applications rarely receive a question nobody has asked before.Support assistants and RAG pipelines field the same intents thousands of times a day, each phrased differently, and most stacks treat every phrasing as a fresh, fully billed request.

Redis LangCache is a fully managed semantic caching service that sits between the application and the model, matches incoming prompts against previously answered ones by meaning rather than exact text, and returns the stored response when a close enough match exists.

Redis reports API cost savings of up to 90% and cache-hit responses up to 15x faster than re-querying the model.Is it deployable?Yes.

LangCache is available today as a public preview on Redis Cloud, accessed through a REST API with Python and JavaScript SDKs, and Redis notes that features and behavior may change during the preview.

The Problem: Paraphrases Are Still Full LLM Calls Consider three requests to a customer-support assistant: “Can I get a refund after buying the monthly plan?” “Is the monthly subscription refundable?” “Can I cancel the plan and get my money back?

” The wording differs, but the question and answer are identical.Without a semantic cache, each version triggers a complete generation: input tokens processed, output tokens decoded, user waiting.Prefix caching only removes part of that cost.

When requests share a system prompt or context, the engine reuses the KV states computed for that prefix, but the request still reaches the LLM, new tokens still get processed, and the full answer still gets decoded.A prefix-cache hit is a cheaper generation call, not an avoided one.

How LangCache Works LangCache moves the cache outside the model and stores the generated response itself.The architecture is a two-call loop: Before invoking the model, the app sends the prompt to POST /v1/caches/{cacheId}/entries/search.

LangCache generates an embedding for the prompt and runs a vector search over stored entries.If a semantically similar entry clears the configured similarity threshold, the cached response is returned and no LLM call occurs.

On a miss, the app calls its chosen LLM as usual, then stores the prompt and new response through POST /v1/caches/{cacheId}/entries for future matches.Embedding generation is handled by the service, with default models or bring-your-own.

Cache behavior is controlled through similarity thresholds, TTLs, and eviction policies, plus adaptive controls that tune precision and recall.Built on Redis’s vector database and exposed as a REST API, it works with any LLM provider and language.

Hit rates and savings are monitored from the Redis Cloud console.window.addEventListener("message",function(e){if(e.data&&e.data.type==="mtp-langcache-resize"){var f=document.getElementById("mtp-langcache-frame");if(f)f.style.height=e.data.

height+"px"}}); What a Cache Hit Actually Saves A cache hit removes the input tokens, the output tokens, and the decoding latency of an additional model call.In a demo run comparing both paths on a paraphrased question, direct inference took 2.

232 seconds and consumed 514 input tokens plus 250 output tokens.LangCache returned the earlier response in 0.37 seconds with zero LLM input or output tokens, roughly 6x faster in that run.The Redis documentation is careful about how savings accrue.

On a cached response you do not pay for output tokens, while input token costs are typically offset by embedding and storage costs.The suggested estimate is: Est.

monthly savings = (Monthly output token costs) x (Cache hit rate) With $200 of monthly LLM spend, 60% of it on output tokens, and a 50% hit rate, that works out to $60 saved per month.Redis also publishes a savings calculator for annual estimates.

Redis’s public preview announcement cited up to 15x faster responses on cache hits and up to 70% lower token usage, while the current product page states savings of up to 90%.Customer Mangoes.ai reports a 70% hit rate on its patient-care voice app, cutting LLM spend by 70% with 4x faster responses.

The actual result depends on how much safe repetition exists in the traffic.Where Semantic Caching Needs Care Deciding which questions can safely share an answer is a production concern, not a configuration detail.A threshold set too low returns a refund policy to a customer asking about upgrades.

Set too high, nearly every paraphrase goes back to the model and the cache stops paying for itself.Production setups need well-tuned thresholds, expiration policies so stale answers age out, data isolation between tenants, and monitoring for incorrect matches.

LangCache covers these with access scopes, custom filtering, TTL and eviction controls, and monitoring through Redis Cloud.Data stays on the customer’s Redis servers, and Redis states it does not access that data or use it to train models.

Key Takeaways Prefix caching cuts prompt-processing cost; semantic caching eliminates the LLM call entirely on a hit.LangCache is a two-call REST integration: search before the model, store after it.Savings come mainly from avoided output tokens; the docs give the formula output cost x hit rate.

Redis claims up to 90% cost savings and up to 15x faster cache hits; a demo run showed 6x.Thresholds, TTLs, isolation, and false-match monitoring decide whether a semantic cache is safe.Check out redis.io/langcache and follow the API and SDK examples.

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?

Connect with us The post Meet Redis LangCache: A Managed Semantic Cache That Cuts LLM API Costs by Up to 90% and Returns Cache Hits Up to 15x Faster appeared first on MarkTechPost.

Related

相關文章

量子位生成式AI

無問芯穹與華環電子簽署戰略合作,共同探索國產異構算力AI基礎設施新方向

無問芯穹與華環電子簽署戰略合作協議,雙方將結合各自在AI軟體平台、網路通信與硬體研發的優勢,共同探索國產異構算力基礎設施的協同方案。此次合作聚焦於智算中心解決方案及「Token工廠」新模式,目標是推動計算、網路與AI原生基礎設施深度融合,為AI規模化應用提供高效穩定的支撐。

4 分鐘前
IT之家生成式AI

優步全球範圍裁員 10%,被裁員工稱 AI 已大舉滲透日常工作

作者:清源 責編:清源 評論: 9 月 18 日消息,據《商業內幕》今天(18 日)晚間報道,在優步(Uber),AI 已經滲透到員工工作的許多環節,從回答 Slack 裡的內部問題,到替乘客行程中聯繫客服時收到的消息撰寫回復。6 名近期遭裁員的員工透露,過去幾個月,AI 在工作中的使用範圍明顯擴大,其中一些人甚至會通過提示詞讓 AI 完成相當一部分任務。

3 小時前
鈦媒體生成式AI

月之暗面遞表之後,Kimi 的成色要被驗算三遍

舒澤品牌手記2026.09.18 18:16 · 來自浙江全文4982字00:00 / 14:05Anthropic 的 30 萬次指控,會成為招股書的第幾頁?文 | 舒澤品牌手記9月17日,月之暗面發佈了一套金融行業解決方案。按官方披露,中信建投、中金公司、易方達等數十家金融機構已經在用 Kimi 處理投研建模、風險排查和盡調材料——研究人員把管理層報表、審計報告和盡調文件交給 Kimi,拿回一份可以繼續調整假設的 Excel 模型。同一天,深圳商報記者就港股上市進展、股東架構調整等事項向月之暗面發去採訪函。

5 小時前

Calibre上手 AI 互動寫作:電子書管理器搖身變成"文字冒險遊戲引擎"

這個遊戲默認藏而不發,不會跟著 Calibre 啟動就冒出來。用戶得主動在"首選項 — 工具欄和菜單"裡把它請到主工具欄,才算真正激活。它的玩法很清晰:由 AI 在後臺搭起並掌管一個虛構世界,用戶通過不斷輸入文字來推著故事往前走,等於把"讀電子書"這件事,翻轉成了"和 AI 一起寫故事"。

7 小時前