Here is a code screenshot. The basic idea is to compute pagerank for each page. The original page rank and page outlinks are stored in redis.
I try to get all rank and links for each page using a pipeline, but got Redis::Future(No method error)when accessing links.length
You didn't include a code snippet.
Redis::Future objects will get their value after the pipeline block completes.
For instance:
```
redis.pipelined do
@value = redis.get "key"
# The pipeline has not yet been executed, so futures are not yet
populated with their values
end
# The pipeline has now been executed, and futures have their values
@value.get # => "some value"
```
Cheers,
Pieter
On Thu, Jul 12, 2012 at 8:16 PM, Sandy <sandy....@gmail.com> wrote:
> Is the pipeline async, namely will redis-rb execute following codes without
> finishing pipeline first?
>
> --
> 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/-/g2s0XpgroYgJ.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/RXcnplDyiecJ.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/YWR9jyrnAY4J.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.