You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a new PostgreSQL-based key-value store using asyncpg
for async operations. The implementation follows the pattern established
by MongoDB and other distributed stores.
Features:
- Uses asyncpg (>=0.30.0) for native async/await operations
- Stores data in a single table with JSONB column for values
- Supports TTL via expires_at timestamps with lazy cleanup
- Implements all base store operations (get, put, delete, ttl)
- Includes optimized bulk operations using PostgreSQL's batch capabilities
- Provides collection enumeration and deletion
- Comprehensive test suite following existing patterns
- Marked as "Unstable" initially
The store supports initialization via:
- Connection pool injection
- Connection URL
- Individual connection parameters (host, port, database, etc.)
Files changed:
- Added PostgreSQLStore implementation and tests
- Updated pyproject.toml to include asyncpg dependency
- Updated README.md to document the new store
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: William Easton <strawgate@users.noreply.github.com>
0 commit comments