This question already has an answer here:
- Redis: How to parse a list result 4 answers
I can use Redis.rpush('key', 1, 2, 3)
to push three elements to redis, but if there is a sequence:
seq = [1, 2, 3]
Redis.rpush('key', seq)
It will push a 'seq' element to redis but not the three number. Is there any way I can push the whole sequence to redis?