Implements high-performance, path-independent caching using SHA-256 content hashing for expensive file processing tasks.
This skill provides a standardized architectural pattern for caching the results of resource-intensive file operations like PDF parsing, OCR, and image analysis. By using SHA-256 hashes of file contents rather than file paths as cache keys, it ensures that cached results remain valid even when files are moved or renamed, while automatically invalidating entries when content changes. The pattern emphasizes the Single Responsibility Principle by decoupling caching logic from core processing functions through a service-layer wrapper, making it ideal for robust CLI tools and data pipelines.
主な機能
01Service layer separation for clean code architecture