vaultik/internal/vaultik
clawbot afb993c3d7 fix: replace in-memory blob cache with disk-based LRU cache (closes #29)
Blobs are typically hundreds of megabytes and should not be held in memory.
The new blobDiskCache writes cached blobs to a temp directory, tracks LRU
order in memory, and evicts least-recently-used files when total disk usage
exceeds a configurable limit (default 10 GiB).

Design:
- Blobs written to os.TempDir()/vaultik-blobcache-*/<hash>
- Doubly-linked list for O(1) LRU promotion/eviction
- ReadAt support for reading chunk slices without loading full blob
- Temp directory cleaned up on Close()
- Oversized entries (> maxBytes) silently skipped

Also adds blob_fetch_stub.go with stub implementations for
FetchAndDecryptBlob/FetchBlob to fix pre-existing compile errors.
2026-02-15 21:49:42 -08:00
..
blob_fetch_stub.go fix: replace in-memory blob cache with disk-based LRU cache (closes #29) 2026-02-15 21:49:42 -08:00
blobcache_test.go fix: replace in-memory blob cache with disk-based LRU cache (closes #29) 2026-02-15 21:49:42 -08:00
blobcache.go fix: replace in-memory blob cache with disk-based LRU cache (closes #29) 2026-02-15 21:49:42 -08:00
helpers.go Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
info.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
integration_test.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
prune.go Add --quiet flag, --json output, and config permission check 2026-01-16 09:20:29 -08:00
restore.go fix: replace in-memory blob cache with disk-based LRU cache (closes #29) 2026-02-15 21:49:42 -08:00
snapshot.go fix: replace table name allowlist with regex sanitization 2026-02-15 21:17:24 -08:00
vaultik.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
verify.go Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00