Expand description
Cache management and memory-mapped I/O
The cache module handles the .reflex/ directory structure:
meta.db: Metadata, file hashes, and configuration (SQLite)tokens.bin: Compressed lexical tokens (binary)content.bin: Memory-mapped file contents (binary)trigrams.bin: Trigram inverted index (per-file varint blocks, V4 format)config.toml: Index settings (TOML text)
Structs§
- Branch
Info - Branch metadata information
- Cache
Manager - Manages the Reflex cache directory
- File
Fingerprint - What freshness compares a file on disk against.
- FileRow
- One
filesrow as the indexer writes it. - Status
Reads - Result of
CacheManager::status_reads.
Constants§
- CACHE_
DIR - Default cache directory name
- CONFIG_
TOML - HASHES_
JSON - META_DB
- File names within the cache directory
- TOKENS_
BIN
Functions§
- mtime_
ns - Modification time as nanoseconds since the Unix epoch,
0when unavailable. - open_
meta_ db - Open a SQLite database with Reflex’s standard pragmas.
- recorded_
mtime_ ns - The mtime to record for a file read during an index run that began at
run_start.