This repository has been archived on 2026-09-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
open-brainy/src/storage/adapters
David Snelling fa18e73a7f **feat(storage): implement multi-level cache manager with dynamic tuning**
- Added a new `CacheManager` class in `cacheManager.ts` to support three-level caching strategy:
  - **Level 1**: Hot cache in RAM for most accessed nodes.
  - **Level 2**: Warm cache using OPFS, Filesystem, or S3, depending on the environment.
  - **Level 3**: Cold storage for longer-term data storage.
- Integrated features for dynamic tuning:
  - Auto-detection of environment (Browser, Node.js, Worker) and memory availability.
  - Parameter tuning for cache size, eviction thresholds, and TTL based on usage patterns.
- Enhanced support for:
  - LRU-based eviction in hot cache.
  - Batch-based operations with configurable batch sizes.
  - Comprehensive logging and debug outputs for cache operations.
- Ensured robust fallback handling to manage storage in constrained environments.
- Improved extensibility for storage adapters (warm and cold storage detection and initialization).

**Purpose**: Optimize data access and storage across multiple environments with seamless scalability and dynamic parameter adjustments.
2025-07-31 17:57:14 -07:00
..
baseStorageAdapter.ts **feat(storage): add pagination and filtering support for nouns and verbs** 2025-07-31 13:13:15 -07:00
fileSystemStorage.ts **docs: add detailed concurrency analysis and implementation documentation** 2025-07-30 11:01:24 -07:00
memoryStorage.ts **feat(storage): add pagination and filtering support for nouns and verbs** 2025-07-31 13:13:15 -07:00
opfsStorage.ts **refactor: improve FileSystemStorage compatibility and remove outdated test** 2025-07-30 11:25:36 -07:00
s3CompatibleStorage.ts **feat(storage): implement multi-level cache manager with dynamic tuning** 2025-07-31 17:57:14 -07:00