Expand description
TTL (Time-to-Live) Management for Automatic Vector Expiration
This module provides:
- Background cleanup service for expired vectors
- Namespace-specific TTL policies
- Configurable cleanup intervals and batch sizes
- Statistics tracking and monitoring
- Graceful shutdown support
Structs§
- Namespace
Cleanup Stats - Per-namespace cleanup statistics
- Namespace
TtlPolicy - TTL policy for a specific namespace
- TtlAware
Storage - A wrapper that applies TTL policies and tracks expiration on upsert
- TtlCleanup
Result - Result of a TTL cleanup operation
- TtlConfig
- Configuration for TTL cleanup service
- TtlManager
- TTL Manager for coordinating automatic vector expiration
- TtlService
- Background TTL cleanup service
- TtlStats
- Statistics for TTL cleanup operations
Functions§
- calculate_
expiration - Calculate expiration timestamp from TTL
- is_
expired - Check if a timestamp has expired
- remaining_
ttl - Get remaining TTL from expiration timestamp