@karmaniverous/jeeves-watcher
    Preparing search index...

    Class ContentHashCache

    In-memory content hash cache for move detection.

    Maps normalized file paths to SHA-256 content hashes. Supports reverse lookup (hash → paths) for correlating unlink+add events as file moves.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Get the content hash for a file path.

      Parameters

      • filePath: string

        The file path (will be normalized).

      Returns string | undefined

      The content hash, or undefined if not cached.

    • Reverse lookup: get all file paths with a given content hash.

      Parameters

      • hash: string

        The content hash to look up.

      Returns string[]

      Array of normalized file paths with that hash.

    • Store or update the content hash for a file path.

      Parameters

      • filePath: string

        The file path (will be normalized).

      • hash: string

        The SHA-256 content hash.

      Returns void