I have a sorted list like the below: "id" "{"date":1664353365563}"
So I need to delete from the sorted list when date is lass than today.
How to do such scenario?
I tried zrem but it didn't work.
You can ZREMRANGEBYSCORE. The command would be:
redis> ZREMRANGEBYSCORE id 0 1664353365563
Replace 1664353365563 with the timestamp for yesterday.
1664353365563
You can ZREMRANGEBYSCORE. The command would be:
Replace
1664353365563with the timestamp for yesterday.