Persist relationships between objects in Redis, in a graph-like way.
# gets all users followed by user 42
"user#42"
|> Red.rel(:follow, :out)
|> Enum.to_list
# gets all users that follow user 42
"user#42"
|> Red.rel(:follow, :in)
|> Enum.to_list
# limits and offsets
"user#42"
|> Red.rel(:follow) # default is :out
|> Red.offset(2)
|> Red.limit(3)
|> Enum.to_list
# creates edge (user#42–> :follow –> user#21)
"user#42"
|> Red.rel(:follow)
|> Red.add!("user#21")
# creates multiple edges from user#42
"user#42"
|> Red.rel(:follow)
|> Red.add!(["user#21", "user#12", "user#15"])