You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(backends): test and correct experimental DynamoDB TTL/close semantics #45
Post-0.5.0 maintenance (2026-11-21): Still OPEN, experimental DynamoDB only. Prior targets labeled 0.3.1 are historical; focus on reproducible expired get() / get_with_ttl() consistency and client close lifecycle, including a real-service or bounded emulator test if possible. Do not claim DynamoDB parity or implement clear() without evidence. Independent maintenance PR, not a required 0.6.0 feature. Tracker #86.
Target: 0.3.1 (bugfix only) or defer with evidence
Observed 0.3.0 source
DynamoBackend.get_with_ttl() checks item expiration, but get() returns the raw value without the same check. Verify that expired items are never returned on the documented public paths.
close() assigns the result of __aexit__() to self.client; validate cleanup and repeated lifecycle behavior.
clear() remains explicitly NotImplementedError; do not invent full feature parity in a patch.
Memcached get_with_ttl() reports a fixed 3600s; triage separately, or document a minimal honest semantics fix if confirmed safe.
Done when
Add targeted failing regressions (expired vs non-expired entries, lifecycle, optional dependency imports), fix minimal bugs, run CI and optional-backend tests. If an actual DynamoDB local/emulated integration cannot run, keep backend flagged experimental and identify that evidence gap.
#111 now tracks the reusable TTL/clear/close/failure backend conformance suite. Specifically reproduce DynamoDB expired get() vs get_with_ttl() and client close behavior with mock/real-service evidence; do not silently claim full DynamoDB support or implement clear() without a safe contract. Memcached fixed TTL/unsupported clear also goes through #111.
Merged #162 (93b9184) in development: direct get uses one GetItem TTL validation; zero/negative TTL expires, only None persists. Fake-client and loopback HTTP evidence, 127/127 checks reported by independent review. Backend remains experimental; clear unsupported, lifecycle/close and real AWS/emulator evidence remain unresolved. No published correction yet; keep open.
Activity
agustin18 commentedon Nov 22, 2026
#111 now tracks the reusable TTL/clear/close/failure backend conformance suite. Specifically reproduce DynamoDB expired
get()vsget_with_ttl()and client close behavior with mock/real-service evidence; do not silently claim full DynamoDB support or implementclear()without a safe contract. Memcached fixed TTL/unsupported clear also goes through #111.fix(dynamodb): reject expired direct reads (#45) (#162)
agustin18 commentedon Nov 28, 2026
Merged #162 (93b9184) in development: direct get uses one GetItem TTL validation; zero/negative TTL expires, only None persists. Fake-client and loopback HTTP evidence, 127/127 checks reported by independent review. Backend remains experimental; clear unsupported, lifecycle/close and real AWS/emulator evidence remain unresolved. No published correction yet; keep open.