MCPcopy
hub / github.com/redis/go-redis / ScriptLoad

Method ScriptLoad

script_server_sha_unit_test.go:32–40  ·  view source on GitHub ↗
(ctx context.Context, script string)

Source from the content-addressed store, hash-verified

30}
31
32func (f *fakeScripter) ScriptLoad(ctx context.Context, script string) *StringCmd {
33 f.mu.Lock()
34 f.scriptLoadCalls++
35 f.mu.Unlock()
36
37 cmd := NewStringCmd(ctx)
38 cmd.SetVal(f.hashToReturn)
39 return cmd
40}
41
42func (f *fakeScripter) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd {
43 cmd := NewBoolSliceCmd(ctx)

Callers

nothing calls this directly

Calls 2

SetValMethod · 0.95
NewStringCmdFunction · 0.85

Tested by

no test coverage detected