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

英特爾與騰訊發佈基於至強6+的雲實例,曬智能體AI基礎設施全家桶

作者 | ZeR0 編輯 | 漠影 11月3日報道,近日,在2026騰訊全球數字生態大會上,英特爾與騰訊雲發佈基於英特爾至強6+處理器的騰訊雲新一代雲實例,並全面展示英特爾的芯片產品與雲端實踐。 全新至強6+處理器擁有最高288顆能效核,單顆處理器最高可支持超過1000個智能體的穩定部署,這也為騰訊雲服務器提供更高併發、更低時延、更優能效的雲端算力服務。

2 小時前
雷峰網生成式AI

智元榮獲2026世界互聯網大會傑出貢獻獎

11月3日,2026年世界互聯網大會烏鎮峰會在浙江烏鎮隆重開幕,國務院總理李強出席開幕式並發表主旨演講。開幕式上,智元憑藉在具身智能領域的系統性技術突破與產業化實踐,獲頒世界互聯網大會傑出貢獻獎。智元合夥人、高級副總裁朱潔在領獎時表示:人工智能的終局,不在於屏幕與雲端,而紮根於工廠一線和尋常煙火。具身智能賽道的競爭,早已跳出單點技術的競速,轉向軟硬協同、工程化落地、產業組織與治理體系的綜合比拼。智元期待與各界同心同行,堅守務實,躬身落地。

2 小時前

電動車退燒、AI 儲能燒起來:LG 新能源把產能挪向數據中心

11 月 3 日,首席財務官李昌植在財報電話會上給出時間表:今年底軟包儲能系統(ESS)產能將超 50 吉瓦時,明年進一步拉到 70 GWh 以上。在他看來,電動車增速放緩之際,AI 數據中心的大規模新建為電池廠撕開了新口子——第三季度 ESS 在手訂單已達 160 GWh,公司正與電力企業、超大型數據中心運營商談新項目,今年 9 月還作為儲能供應商擠進了英偉達的 DSX Ready 計劃。

3 小時前4700
雷峰網生成式AI

最高288核的至強6+,為了Agent高密度部署還下了哪些「雲功夫」?

作者 | 陳悅琳編輯 | 包永剛 一個智能體能順利完成任務,不代表成百上千個智能體就能同時高效運行。 對於承載大量智能體任務的雲服務器而言,除了提升計算速度,如何在任務集中到來時迅速準備好執行環境、怎樣減少暫時閒置的任務對內存資源的佔用,也成為亟待解決的問題。 對此,在一年一度的騰訊全球數字生態大會上,英特爾與騰訊雲聯合發佈了基於至強6+處理器的新一代雲實例,圍繞任務啟動效率、內存資源利用率等關鍵因素進行優化後,其綜合性能較上一代提升30%以上。

3 小時前

聯合國副秘書長點贊!千問AI耳夾式耳機亮相烏鎮互聯網大會

他認為,產品非常實用,適合自己日常工作中需要使用多國語言進行交流的場景。面對面交流時,用戶可以通過耳機收聽譯文;會議中的討論內容,也能通過AI聽記整理為結構化紀要,方便會後回顧。連接千問App後,用戶還可通過語音交辦資料研究等任務、接收完成提醒,讓耳機成為日常辦公的隨身助手。

4 小時前