def redis_prefix_lua(conn, dest, index, prefix, is_first, pattern=None):
tkey = '<STR_LIT>'%(index.partition('<STR_LIT::>')[<NUM_LIT:0>], uuid.uuid4())<EOL>start, end = _start_end(prefix)<EOL>return _redis_prefix_lua(conn,<EOL>[dest, tkey, index],<EOL>[start, end, pattern or prefix, int(pattern is not None), int(bool(is_first))]<EOL>)<EOL>
Performs the actual prefix, suffix, and pattern match operations.