Package com.helix.core.cache.l4
Class RuleKeyHasher
java.lang.Object
com.helix.core.cache.l4.RuleKeyHasher
Deterministic SHA-256 key generator for compiled rules across distributed cluster nodes.
-
Method Summary
-
Method Details
-
hashRule
Computes a deterministic SHA-256 hash for the given rule content.- Parameters:
ruleContent- raw rule JSON or expression string- Returns:
- 64-character lowercase hexadecimal SHA-256 hash
-
hashRule
Computes a deterministic SHA-256 hash incorporating the engine build version. This prevents incompatible bytecode from being loaded if the engine compiler evolves.- Parameters:
ruleContent- raw rule JSON or expression stringengineVersion- engine compiler version- Returns:
- 64-character lowercase hexadecimal SHA-256 hash
-