PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Library> Topic

LLM caching: prompt, semantic and tool-result caches

Caching saves money and time by not paying twice for the same work, and an LLM application has several kinds. Prompt caching, offered by model providers, reuses the processed prefix of a long prompt such as a system prompt or tool list. A semantic cache stores earlier answers and returns one when a new question means the same thing, matched by embeddings rather than exact text. A tool server can cache the results of slow or expensive calls.

Each has a risk: a semantic cache can answer a question that only looks similar, and cached data can go stale or leak between users. These guides cover semantic caching with model fallback, caching and circuit breakers on MCP servers, and how prompt caching changes the token cost of MCP tool lists.

4
guides
4
Intermediate
84 min
of reading
01

Start here

MCP Middleware for Servers: Auth, Logging, Rate Limits

MCP middleware adds auth, audit logs, rate limits, caching and timeouts to every tool call. How the pipeline and ordering work in FastMCP and Promptise.

Intermediate · 18 minRead the guide →
  1. 01MCP vs CLI for AI Agents: Tokens, Security, When to Use EachMCP vs CLI tools for AI agents: where the tokens go, prompt caching, per-user security and when to use each or both, with runnable code and real output.Intermediate · 20 minTools and the Model Context Protocol (MCP)Intermediate · 20 minTools and the Model Context Protocol (MCP)→
  2. 02LLM Semantic Cache and Model Fallback in PythonReduce LLM API costs with a semantic cache and survive provider outages with model fallback. Real hits, tokens and a simulated outage, in Python.Intermediate · 23 minModels and providersIntermediate · 23 minModels and providers→
  3. 03MCP Server Caching, Timeouts and Circuit Breakers in PythonKeep an MCP server fast when its API is flaky: caching, retries with backoff, timeouts, a circuit breaker and limits, with real before and after numbers.Intermediate · 23 minTools and the Model Context Protocol (MCP)Intermediate · 23 minTools and the Model Context Protocol (MCP)→

Related topics

  • Model Context Protocol (MCP)54
  • Cost Control29
  • Rate Limiting4
  • Reliability and Fallbacks14
  • Audit Logging and Monitoring10
  • Authentication and Access Control20
  • Tool Calling34

Topic hubs

  • Tools and the Model Context Protocol (MCP)→
  • Cost control and rate limits→
  • Models and providers→
  • Memory, context and RAG→

By category and level

  • AI Engineering guides147
  • Intermediate guides140

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths