Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/state-machines-and-ownership/concept/concept-adapter-outbound-cache-redis-c08.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +09:00

2.6 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module
CONCEPT adapter-outbound-cache-redis-c08 한쪽에만 적용되는 변경이 구조적으로 불가능하다 state-machines-and-ownership clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 concept:adapter-outbound-cache-redis-c08 2026-09-01
key file
adapter-outbound-cache-redis-c08 ../../../final/evidence/rendered/adapter-outbound-cache-redis-c08.svg
key file
adapter-outbound-cache-redis-c08-diagram ../../../final/assets/diagrams/adapter-outbound-cache-redis-c08.svg
../../../final/evidence/raw/adapter-outbound-cache-redis-c08.txt
원본 분석 절은 final/document.md#a10#L456 이다.
adapter-outbound-cache-redis

한쪽에만 적용되는 변경이 구조적으로 불가능하다

ValueOperationRequests의 javadoc이 불변식을 적고, 두 구현이 같은 builder를 생성자에서 만들면서 그것을 구조로 보장한다.

본문

ValueOperationRequests의 javadoc이 불변식을 적는다 — "Both the blocking and the reactive string operations call exactly these methods, so a change to a permit, a budget, an encoding, or a command choice cannot apply to one API and not the other."

두 모델이 공유하는 빌더

:::evidence key="adapter-outbound-cache-redis-c08-diagram" alt="공유 request builder 에서 동기 표면과 반응형 표면으로 각각 화살표가 나가고 화살표에 같은 요청 객체가 붙은 구조" caption="두 모델이 공유하는 빌더" zoom="false" :::

구조가 그것을 보장한다. LettuceRedisValueOperationsLettuceReactiveRedisValueOperations는 둘 다 생성자에서 new ValueOperationRequests(gateway, context, counters)를 만들고, 차이는 SyncRedisCommandExecutor vs ReactiveRedisCommandExecutor 하나뿐이다.

ValueOperationRequests 참조 위치

:::evidence key="adapter-outbound-cache-redis-c08" alt="코드베이스에서 ValueOperationRequests 를 검색한 출력 10줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="ValueOperationRequests 코드베이스 검색 — 10줄 · exit 0" zoom="true" :::

열한 계열 전부에서 확인했다

각 메서드는 executor.execute(requests.xxx(...)) 한 줄이고, reactive 쪽은 그 위에 flatMap/then 같은 형태 변환만 얹는다. Value·Hash·List·Set·SortedSet·Key·Geo·Bitmap·Stream·HyperLogLog·PubSub 모두 sync와 reactive 양쪽이 같은 *OperationRequests를 생성한다(162-... §8.2).