Felipe Cardoso
6be8e2e88d
feat(memory): implement caching layer for memory operations (#98)
Add comprehensive caching layer for the Agent Memory System:
- HotMemoryCache: LRU cache for frequently accessed memories
- Python 3.12 type parameter syntax
- Thread-safe operations with RLock
- TTL-based expiration
- Access count tracking for hot memory identification
- Scoped invalidation by type, scope, or pattern
- EmbeddingCache: Cache embeddings by content hash
- Content-hash based deduplication
- Optional Redis backing for persistence
- LRU eviction with configurable max size
- CachedEmbeddingGenerator wrapper for transparent caching
- CacheManager: Unified cache management
- Coordinates hot cache, embedding cache, and retrieval cache
- Centralized invalidation across all caches
- Aggregated statistics and hit rate tracking
- Automatic cleanup scheduling
- Cache warmup support
Performance targets:
- Cache hit rate > 80% for hot memories
- Cache operations < 1ms (memory), < 5ms (Redis)
83 new tests with comprehensive coverage.
2026-01-05 04:04:13 +01:00
..
2026-01-05 04:04:13 +01:00
2026-01-05 03:04:28 +01:00
2026-01-05 02:08:16 +01:00
2026-01-05 02:50:13 +01:00
2026-01-05 03:49:22 +01:00
2026-01-05 03:32:10 +01:00
2026-01-05 02:31:32 +01:00
2026-01-05 02:39:22 +01:00
2026-01-05 02:23:06 +01:00
2026-01-05 01:51:03 +01:00
2026-01-05 01:27:36 +01:00
2026-01-05 01:27:36 +01:00
2026-01-05 01:27:36 +01:00
2026-01-05 01:27:36 +01:00