MCPcopy
hub / github.com/redis/redis-py / watched_sequence

Function watched_sequence

doctests/trans_pipe.py:80–86  ·  view source on GitHub ↗
(pipe)

Source from the content-addressed store, hash-verified

78
79
80def watched_sequence(pipe):
81 current_path = pipe.get("shellpath")
82 new_path = current_path + ":/usr/mycmds/"
83
84 pipe.multi()
85
86 pipe.set("shellpath", new_path)
87
88
89trans_result = r.transaction(watched_sequence, "shellpath")

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
multiMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected