MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / transaction_example

Function transaction_example

memory/redisHelper.py:138–140  ·  view source on GitHub ↗
(pipe)

Source from the content-addressed store, hash-verified

136 print(redis_helper.smembers("fruits"))
137
138 def transaction_example(pipe):
139 pipe.incr("counter")
140 pipe.decr("balance")
141 redis_helper.execute_transaction(transaction_example)
142
143 def message_handler(channel, message):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected