Agent Billing Redis Config
7/8/26Less than 1 minute
Agent Billing Redis Config
Info
Redis DB12 configuration for agent billing balance cache.
Configuration
| Property | Value |
|---|---|
| Database | DB 12 |
| Key Pattern | agent:balance:{username} |
| Value Type | String (8 decimal places) |
| Purpose | User balance cache |
Key Format
agent:balance:john_doe → "123.45678901"Operations
- GET — Read balance
- SET — Write balance (used by reconciliation job)
- SETNX — Initialize from DB (prevents overwrite)
Warning
Balance values are stored as strings with 8 decimal places for precision.
Changelog
7/8/26, 5:52 AM
View All Changelog
9f290-on

