vLLM PagedAttention: Prompt Caching reuses content via block hashing

shao__meng analyzes Prompt Caching based on vLLM PagedAttention, showing that caching is content-based (global reuse), not user-session based. Prefill (KV cache) is compute-heavy while decoding is memory-bandwidth-bound; cache hits can cut prefill cost ~10x. PagedAttention shards KV into blocks with parent-dependent block hashes and global lookup; practical tips: keep stable prefixes, use deterministic serialization, adopt append-only history, and avoid dynamic tool-definition changes.