struct

Hwaro::Core::Build::CacheEntry

Inherits JSON::Serializable / Struct / Value / Object

Represents a cached entry for a file

Constructors

new(path : String, mtime : Int64, hash : String, output_path : String, template_hash : String = "", config_hash : String = "", cascade_hash : String = "", output_paths : Array(String) = [] of String)
Source
new(pull : JSON::PullParser)

Allow missing fields when deserializing legacy entries

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cascade_hash

Fingerprint of the merged section [cascade] values that applied to this page when it was built. A parent _index.md cascade edit changes the fingerprint and invalidates the page even though its own source file is untouched.

Source
cascade_hash=(cascade_hash : String)

Fingerprint of the merged section [cascade] values that applied to this page when it was built. A parent _index.md cascade edit changes the fingerprint and invalidates the page even though its own source file is untouched.

Source
config_hash
Source
config_hash=(config_hash : String)
Source
hash

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.

Source
hash=(hash : String)
Source
mtime
Source
mtime=(mtime : Int64)
Source
output_path
Source
output_path=(output_path : String)
Source
output_paths

Secondary sibling output files this page emitted beyond output_path (e.g. index.json, index.xml — see [outputs]). Empty for pages with no extra formats and for every entry written before this feature existed (legacy cache JSON loads with []).

Source
output_paths=(output_paths : Array(String))

Secondary sibling output files this page emitted beyond output_path (e.g. index.json, index.xml — see [outputs]). Empty for pages with no extra formats and for every entry written before this feature existed (legacy cache JSON loads with []).

Source
path
Source
path=(path : String)
Source
template_hash
Source
template_hash=(template_hash : String)
Source