Redis LangCache guidance for semantic caching of LLM responses on Redis Cloud — calling search/set via the SDK or REST API, tuning the similarity threshold, separating caches per task type, and filtering with custom attributes. Use when caching LLM completions or RAG answers to cut API cost and latency, building a cache-aside layer in front of OpenAI / Anthropic / etc., tuning hit rate vs precision, or splitting one app's LLM workloads into multiple LangCache caches.
$npx -y skills add redis/agent-skills --skill redis-semantic-cacheInstalls into the current project.
Run `npx skills use "https://github.com/redis/agent-skills" --skill "redis/agent-skills/redis-semantic-cache"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/redis/agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/redis/agent-skills"` and select the relevant skills, then follow their instructions.