MCPcopy Index your code
hub / github.com/redis/node-redis / scriptSha1

Function scriptSha1

packages/client/lib/lua-script.ts:20–22  ·  view source on GitHub ↗
(script: RedisScriptConfig['SCRIPT'])

Source from the content-addressed store, hash-verified

18}
19
20export function scriptSha1(script: RedisScriptConfig['SCRIPT']): string {
21 return createHash('sha1').update(script).digest('hex');
22}

Callers 2

defineScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected