Path: redb-route/redb.Route.Sql/Repositories/SqlClaimCheckOptions.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Sql/Repositories/SqlClaimCheckOptions.cs ---- using System; using System.Text.RegularExpressions; namespace redb.Route.Sql.Repositories; /// /// Configuration options for . /// public sealed class SqlClaimCheckOptions { private static readonly Regex ValidTableName = new(@"^[a-zA-Z_][a-zA-Z0-9_.]*$", RegexOptions.Compiled); private string _tableName = "redb_claim_check"; /// Table name for claim check entries (default: "redb_claim_check"). public string TableName { get => _tableName; set { if (string.IsNullOrWhiteSpace(value) || !ValidTableName.IsMatch(value)) throw new ArgumentException($"Invalid table name: '{value}'. Must match [a-zA-Z_][a-zA-Z0-9_.]*", nameof(value)); _tableName = value; } } /// Default TTL for entries. Zero or null means no expiry. public TimeSpan? DefaultTtl { get; set; } /// Auto-create the table on first use (default: true). public bool CreateTable { get; set; } = true; /// /// Run cleanup of expired rows every N Store operations. Zero disables automatic cleanup. /// public int CleanupInterval { get; set; } = 100; }