~/talk

From Database Caching to LLM Semantic Caching - How Valkey Caches Meaning, Not Just Byt...

Talkat ValkeyConf 2026 · on Monday, 2026-10-05· [large-language-models, databases]
name:Zhao Zhao
links:none on file
slides:none on file

A gateway-layer cache sits between application and model and exposes OpenAI/Anthropic-compatible endpoints while using Valkey to store both vectors and responses. Three cache-key strategies are compared: latest message, conversation concatenation, and query rewriting, with rewriting produced by a small local model. Results show hit rate rising from about 13% to nearly 80%, precision from 0.6 to 0.88, and LLM calls falling ~76.6%, demonstrating practical savings and correctness.

AI-written summary · about

  1. 0:00Introduction to semantic caching
  2. 1:05Traditional database caching explained
  3. 2:30LLM inference costs and challenges
  4. 3:13Limitations of exact-match caching
  5. 4:16Semantic caching concept and vector search
  6. 5:18Introducing Tair AI Gateway
  7. 6:19Multi-turn conversation caching issues
  8. 7:26Query rewriting approach
  9. 9:36Evaluation results and metrics
  10. 10:40Why use Velox for semantic caching
  11. 11:43Semantic vs traditional caching summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.