Skip to content

How do I configure idempotency with Redis backend? #10

Description

@sudsali

I'm trying to use the Redis backend for idempotency in Powertools but I'm hitting a few questions the docs don't cleanly cover:

  1. Cluster mode — does the persistence layer support Redis Cluster, or only standalone? What's the right way to pass cluster-aware connection settings?
  2. Connection options — should I be passing a URL string (redis://...) or constructor arguments (host/port/username/password/db_index/ssl)? Do both work, and is one preferred?
  3. Working example — a minimal end-to-end example with the @idempotent decorator pointing at a Redis layer would help — even just the imports + the decorator + the persistence layer instantiation.

Looking at the source it seems like there are multiple persistence-layer classes; I want to make sure I pick the right one for new code, not the deprecated path.

Activity

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

    documentationImprovements or additions to documentationquestionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions