ЛР 6 — БВТ2302 — Лебедев — на 5

This commit is contained in:
2026-11-22 23:19:26 +03:00
parent 470d9d6f1e
commit 90508e41e9
148 changed files with 19332 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
# 2026-11-21T19:22:05Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ dc run --rm --no-deps -T -v /home/claude/work6/mtusi2026lab6/student-tests:/app/student-tests:ro --entrypoint python api student-tests/test_cache_race.py
Container mtusi-lab6-api-run-b1fb72351b97 Creating
Container mtusi-lab6-api-run-b1fb72351b97 Created
PASS read-through put makes entry readable
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS pttl=60000ms
PASS invalidate removes entry
PASS late put after logout is refused by tombstone
PASS tombstone outlives any cache entry pttl=75000ms
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