Feb 1, 2017
0
Level 7
How to do whereNotIn() in Redis results
Hey guys
I’m using Laravel’s pagination to fetch some results from the database, and since users are able to block some results I’m doing whereNotIn() in my queries. And now I’m trying to implement the same using Redis. How can I accomplish the same thing here?
(right now I’v come up with removing the blocked ones using PHP, but that kind of screws the whole pagination thing. For example I fetch 10 results and then remove 3 of them (3 were in blockedList) then I’m getting 7. But in whereNotIn() there is no such problem)
Please or to participate in this conversation.