Arguments
str
required
The array key.
*values: ValueT
required
One or more values to write. Values may be strings, integers, floats, or booleans.
Response
The index where the last value was written, as a string in TypeScript or an integer in Python.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
print(redis.arinsert("events", "boot", "ready")) # 1
print(redis.arinsert("events", "running")) # 2
print(redis.arnext("events")) # 3
Append values after the array append cursor.
print(redis.arinsert("events", "boot", "ready")) # 1
print(redis.arinsert("events", "running")) # 2
print(redis.arnext("events")) # 3
print(redis.arinsert("events", "boot", "ready")) # 1
print(redis.arinsert("events", "running")) # 2
print(redis.arnext("events")) # 3
Was this page helpful?