Complete the code to add an entry to a Redis stream with the ID generated automatically.
XADD mystream [1] name Alice age 30
Using * tells Redis to generate an automatic ID for the new stream entry.
Complete the code to add an entry with a specific ID '1609459200000-0' to the stream.
XADD mystream [1] name Bob score 85
Specifying the ID explicitly allows you to control the entry's timestamp and sequence number.
Fix the error in the code to add an entry with fields 'temperature' and 'humidity'.
XADD weather_stream [1] temperature 22 humidity 60
The ID must be * for automatic generation; 'latest', 'now', or 'last' are invalid.
Fill both blanks to add an entry with ID '1609459200000-0' and fields 'event' and 'status'.
XADD events_stream [1] event login status [2]
The first blank is the explicit ID, the second blank is the value for the 'status' field.
Fill all three blanks to add an entry with automatic ID and fields 'user', 'action', and 'time'.
XADD user_actions [1] user Alice action [2] [3] 10:00
The first blank is the automatic ID symbol *, the second blank is the value 'login', and the third blank is the field name 'time'.