Class IdempotencyRecordProps

Assembly: redb.Identity.Core.dll

E2 — PROPS record for cached responses of Idempotency-Key-bearing requests.

Lookup is keyed by the indexed name column (composite
idem:{scope}:{operation}:{caller}:{key}). The TTL is the standard
date_complete field: the cache ignores a record past it, and
deletes such records on its timer
().

[RedbScheme("identity.idempotency_record")]
public class IdempotencyRecordProps

Inheritance

Object→IdempotencyRecordProps

Properties

CallerSubject

Sub-claim of the caller (or "anon" when no authenticated principal is on the

public string? CallerSubject { get; set; }

IdempotencyKey

The verbatim Idempotency-Key header value (defensive equality check).

public string? IdempotencyKey { get; set; }

Method

HTTP method of the original request, e.g. POST / PUT. Audit-only.

public string? Method { get; set; }

Operation

Operation header value of the original request, e.g. create / update.

public string? Operation { get; set; }

ResponseBody

JSON-serialized response body captured at completion. May be null when the

public string? ResponseBody { get; set; }

Scope

Logical scope this record belongs to (route id of the direct-vm route that produced

public string? Scope { get; set; }

SecretWithheld

The answer carried a one-time secret (a member marked [OneTimeSecret] in redb.Identity.Contracts), so

public bool SecretWithheld { get; set; }

StatusCode

HTTP status code captured for replay (e.g. 200, 201, 204).

public int StatusCode { get; set; }