When you fetch the post information, among other pieces of data you
have will be the user id of the original posting user. With this
information, you can then perform a pipelined sequence of ZSCORE
operations against your friends ZSET. If you want to reduce data
transfer a bit, you could also execute a Lua script that does the same
thing (checking ZSCOREs), or even write a Lua script that does the
entire fetch, including checking for friends ZSET membership.
Regards,
- Josiah
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/redis-db/-/NinkI9mb6LYJ.
> To post to this group, send email to
redi...@googlegroups.com.
> To unsubscribe from this group, send email to
>
redis-db+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/redis-db?hl=en.