Sha256: 7a5c9c11231c7e7cb981a8e70d803e29b8b09bcd011165e26d92e633b8424e89

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

[![Build Status](https://travis-ci.org/Clubjudge/hari.png?branch=master)](https://travis-ci.org/Clubjudge/hari)

## hari

Hari is a library to persist and get nodes and its relations in Redis, using different data structures depending on your need.

    Hari(user: 23).out(:follow).out(:activity).limit(25)

The query above will return the top `25` activities from all nodes user `23` follows.

### Relations

Creating a relation can be as simple as:

    Hari.relation! :follow, user, event

    # where user / event are:

    - objects with #id method (node representation will be class#id, like user#23)
    - strings with node_type#node_id
    - hash like { node_type => node_id }
    - a Hari::Node instance

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hari-0.0.3 README.md