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.
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.
Copyright © 2021 Jogjafile Inc.
You can ZREMRANGEBYSCORE. The command would be:
Replace
1664353365563with the timestamp for yesterday.