Skip to main content

ScriptSha1

Type Alias ScriptSha1 

Source
pub type ScriptSha1 = [u8; 20];
Expand description

A SHA1 hash of a script’s source bytes. Used as the EVALSHA cache key. Includes any #!lua version=N shebang in the input, so a 5.1 script and the same script with a 5.3 shebang have distinct SHA1s and never collide in the cache.