Popularity
2.4
Stable
Activity
0.0
Stable
14
1
1

Monthly Downloads: 16
Programming language: Elixir
License: Apache License 2.0

red alternatives and similar packages

Based on the "ORM and Datamapping" category.
Alternatively, view red alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of red or a related project?

Add another 'ORM and Datamapping' Package

README

Red

Hex version Build status Deps Status Inline docs Hex downloads

Store relations between entities using redis.

Example: A follow system

import Red

# @vcr2 -{follow}-> @hex_pm

{:ok, _} =
  "@vcr2"
  |> relation(:follow)
  |> add!("@hex_pm")

"@vcr2" |> relation(:follow) |> Enum.at(0)
> "@hex_pm"

# @vcr2 ===follow===> *
count_following = "@vcr2" |> relation(:follow) |> Enum.count
> 100

# @vcr2 <===follow=== *
count_followers = "@vcr2" |> relation(:follow, :in) |> Enum.count
> 43

# jump 10, next 5
"@vcr2" |> relation(:follow) |> offset(10) |> limit(5) |> Enum.to_list
> []