Skip to content

fix(backends): test and correct experimental DynamoDB TTL/close semantics #45

Open

Description

@agustin18

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.

Activity

  1. agustin18 commented on Nov 22, 2026

    @agustin18
    OwnerAuthor

    #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.

  2. agustin18 commented on Nov 28, 2026

    @agustin18
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions