C.W.K.
Stream
Lesson 04 of 05 · published

Cache는 Memory 아니야

~24 min · cache, memory, state

Level 0Window Watcher
0 XP0/50 lessons0/13 achievements
0/100 XP to next level100 XP to go0% complete

Caching은 반복 input 가속

Prompt caching은 이미 처리된 prefix 재사용 도움. 무엇이 중요한지 결정, durable 사실 영원히 저장, 프로젝트 source of truth 업데이트 X. Performance feature지 memory system 아니야. Warm cache가 memory처럼 느껴 — expire하거나 prefix 변하거나 모형 교체될 때까지 — 그러면 환상 사라져.

각 layer 자기 일에

Cache는 반복 static input. Memory는 durable 사실과 사용자 선호. Handoff는 현재 task state. Retrieval은 pointer로 source material. Window는 활성 작업. 헷갈리면 root-cause 분석 패배시키는 방식으로 system이 fragile해져.

Drift 기억해

System이 사실을 'remember'하는 게 cache가 warm해서뿐이면, latent 버그 있어. 맞는 test — cache clear, session restart, 그 사실 surface하나? No면 그 사실은 진짜 home 필요 — durable memory나 명시적 handoff, cached context 만으론 X.

Warm cache가 memory처럼 느껴질 수 있어. Memory 아니야.

Code

Cache vs memory·yaml
context_layers:
  cache:     "reuse stable prefix cheaply"
  memory:    "durable facts and preferences"
  handoff:   "current task state"
  retrieval: "load source material by pointer"
  window:    "active working set"
Cold-start test·text
After any 'remembered' behavior:
  1. Clear or invalidate the cache.
  2. Start a fresh session.
  3. Repeat the prompt.
  4. If the behavior disappears -> that 'memory' was actually cache.
  5. Move it to durable storage if it should survive.

External links

Exercise

AI product idea 하나에서 어느 사실이 cache, memory, retrieval, handoff, 활성 context에 속할지 결정. Cold-start test mentally — cache clear 후 뭐 surface?
Hint
사실이 내일까지 살아야 하면 단순 cache 아니야.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.