Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update Redis list item?

Tags:

redis

I'm currently researching high scalable web site architectures,nearly all of the articles i've read say that Redis is very good choice for a timeline(facebook,twitter like) architecture.So let's suppose that I'm building a new social network and I want to save last 500 feeds of each user with Redis,I'm just curious about what will happen when a user delete a feed which is in last 500 feeds? I couldn't find any information about updating Redis list item,if there is no such a thing in Redis how can it be a very good choice?

like image 489
spartacus Avatar asked Oct 29 '25 20:10

spartacus


1 Answers

Using the Lset command will allow you to update a list item: https://redis.io/commands/lset

like image 82
Keith Holliday Avatar answered Oct 31 '25 12:10

Keith Holliday



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!