Files
CLIProxyAPI/internal/store/postgres_cooldown_store.go
Luis Pater f329b9d10c feat(store): add PostgreSQL-backed cooldown state persistence
- Introduced `PostgresCooldownStateStore` for saving and loading cooldown states in a PostgreSQL database.
- Supported runtime cooldown state management with efficient upsert and deletion.
- Added configurable integration via `PostgresStoreConfig` and updated schema management to include cooldown-related tables.
- Included tests to validate persistence, normalization, and concurrent handling of cooldown state records.
- Enabled overriding cooldown state stores via service builder and SDK configuration.

Closes: #4254
2026-07-27 03:46:55 +08:00

6.4 KiB