Back to course

Daily Repetition 14: The 'Redis Cache' Tool

Model Context Protocol (MCP) Server Engineering

Daily Repetition: Tool #14

Sometimes you want the AI to remember short-term state across sessions. Use Redis.

Implementation

Create tools set_cache and get_cache.

Assignment: Tell the AI: "Store my favorite color as Blue in the cache."