content-hash-cache-pattern - Content-Hash File Cache Pattern
Caches file processing results using SHA-256 content hashes with service layer separation and auto-invalidation.
Tags
Updated: 2026-09-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Compute SHA-256 file content hash
- Read JSON cache entry by hash
- Write cache entry to JSON file
- Wrap processing logic in service layer
Inputs
- Target file path
- Cache directory path
- Cache enablement flag
Outputs
- JSON cache entry file
- Extracted document result
- Cache hit or miss log
Requirements
- File system access
- Python runtime environment
