Reputation: 2719
Let's say I have the following result in Redis:
GET YEARS
[2010, 2011, 2012, 2013]
How can I add a another year to this list? I tried RPUSH and SADD but they are not working.
Upvotes: 1
Views: 2589
Reputation: 6267
You are able to get the value of YEARS
by GET command. This implies that it is saved as String data type. If you want to continue using String, you would have to
YEARS
)YEARS
) by SET or similar commandOr, instead of String, you can use
Upvotes: 1