Home / Companies / Redis / Blog / Post Details
Content Deep Dive

What is prompt caching? LLM speed & cost guide

Blog post from Redis

Post Details
Company
Date Published
Author
Jim Allen Wallace
Word Count
1,860
Company Posts That Month
28
Language
English
Hacker News Points
-
Post removed?
No
Summary

Prompt caching is a technique used in large language models (LLMs) to reduce latency and costs by storing computational states from an LLM's attention layers, allowing the model to skip redundant processing on repeated prompt prefixes. This approach decreases time-to-first-token (TTFT) and input costs for requests that share a prefix, although output token costs remain unchanged. Prompt caching differs from regular and semantic caching, as it focuses on input-side computation, while regular caching stores full LLM responses and semantic caching uses vector embeddings for similar queries. Effective use of prompt caching involves structuring prompts with stable content first and variable content last, maximizing cache hit rates in RAG pipelines, chatbots, and agentic systems. Combining prompt caching with other caching methods, such as exact-match and semantic caching, offers comprehensive cost and latency reductions for LLM applications. Redis supports these caching strategies, providing a platform that integrates vector search, semantic caching, and in-memory data structures for efficient query handling.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 22 6,078 960 218 +18%
Vector Search 5 2,370 415 145 +7%
RAG 4 1,806 326 91 +5%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.