SQLite-based cache for embeddings. Stores embeddings with their text hashes to avoid regeneration. Supports TTL (time-to-live) for cache entries.
| Visibility | Name | Type | Description |
|---|---|---|---|
| private | db_path | str | |
| private | ttl_days | int | |
| private | conn | sqlite3.Connection |
| Visibility | Name | Description |
|---|---|---|
| public | get() | |
| public | put() | |
| public | set() | |
| public | get_batch() | |
| public | has() | |
| public | delete() | |
| public | clear() | |
| public | clear_expired() | |
| public | size() | |
| public | stats() | |
| public | close() |
| Name | Value |
|---|---|
| name | EmbeddingCache |
| stereotype | null |
| visibility | public |
| isAbstract | false |
| isFinalSpecialization | false |
| isLeaf | false |
| isActive | false |