# 2026-11-05T21:20:43Z commit=n/a host=Linux 6.18.44-fc-v236 x86_64 cpus=2
$ make test-cache-race
docker compose --env-file .env run --rm --no-deps -T -v "/home/claude/work4/mtusi2026lab4/student-tests:/app/student-tests:ro" --entrypoint python api student-tests/test_cache_race.py
 Container mtusi-lab4-api-run-3d1f6cdcdb56 Creating 
 Container mtusi-lab4-api-run-3d1f6cdcdb56 Created 
PASS read-through put makes entry readable
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS  pttl=59999ms
PASS invalidate removes entry
PASS late put after logout is refused by tombstone
PASS tombstone outlives any cache entry  pttl=74997ms
PASS entry never outlives session expiry  pttl=1199ms
PASS expired session not served from cache
cache unavailable; falling back to PostgreSQL
PASS degraded mode: cache is not read until outbox drained
summary: all passed
exit=0
