Brew Redis

Posted on  by admin

Redis 5.0 is the first version of Redis to introduce the new stream data type with consumer groups, sorted sets blocking pop operations, LFU/LRU info in RDB, Cluster manager inside redis-cli, active defragmentation V2, HyperLogLogs improvements and many other improvements. I also tried uninstalling Redis, reinstalling it, and using brew services to manage services (brew services works fine for me with the installations of MongoDB and Cassandra). I haven't seen others having this problem so I'm not sure how to diagnose.

RedisGraph is the first queryable Property Graph database to use sparse matrices to represent the adjacency matrix in graphs and linear algebra to query the graph.

Primary features:

  • Based on the Property Graph Model
  • Nodes (vertices) and Relationships (edges) that may have attributes
  • Nodes that can be labeled
  • Relationships have a relationship type
  • Graphs represented as sparse adjacency matrices
  • Cypher as query language
  • Cypher queries translated into linear algebra expressions

Install Redis Mac

To see RedisGraph in action, visit Demos .

Trusted By ¶


Quickstart ¶

Redis Cloud ¶

RedisGraph is available on all Redis Cloud managed services. Redis Cloud Essentials offers a completely free managed database up to 30MB.

Docker ¶

To quickly try out RedisGraph, launch an instance using docker:

Give it a try ¶

After you load RedisGraph, you can interact with it using redis-cli.

Here we'll quickly create a small graph representing a subset of motorcycle riders and teams taking part in the MotoGP championship. Once created, we'll start querying our data.

With redis-cli

Now that our MotoGP graph is created, we can start asking questions. For example:Who's riding for team Yamaha?

How many riders represent team Ducati?

Download ¶


A pre-compiled version can be downloaded from RedisLabs download center .

Building ¶


  • The RedisGraph repository: git clone --recurse-submodules -j8

  • On Ubuntu Linux, run: apt-get install build-essential cmake m4 automake peg libtool autoconf

  • On OS X, verify that homebrew is installed and run: brew install cmake m4 automake peg libtool autoconf .

    • The version of Clang that ships with the OS X toolchain does not support OpenMP, which is a requirement for RedisGraph. One way to resolve this is to run brew install gcc g++ and follow the on-screen instructions to update the symbolic links. Note that this is a system-wide change - setting the environment variables for CC and CXX will work if that is not an option.

To build, run make in the project's directory.

Congratulations! You can find the compiled binary at: src/

Loading RedisGraph into Redis ¶

RedisGraph is hosted by Redis , so you'll first have to load it as a Module to a Redis server running Redis v4.0 or above .

We recommend having Redis load RedisGraph during startup by adding the following to your redis.conf file:

In the line above, replace /path/to/module/src/ with the actual path to RedisGraph's library.

Alternatively, you can have Redis load RedisGraph using this command-line argument syntax:

You can also use the MODULE LOAD command. Note, however, that MODULE LOAD is a dangerous command and may be blocked/deprecated in the future due to security considerations.

After you've successfully loaded RedisGraph, your Redis log should contain entries similar to:

If the server fails to launch with output similar to:

The system is missing the run-time dependency OpenMP. This can be installed on Ubuntu with apt-get install libgomp1 , on RHEL/CentOS with yum install libgomp , and on OSX with brew install libomp .

Using RedisGraph ¶

Before using RedisGraph, you should familiarize yourself with its commands and syntax as detailed in the commands reference .

You can call RedisGraph's commands from any Redis client.

With redis-cli

With any other client ¶

You can interact with RedisGraph using your client's ability to send raw Redis commands.The exact method for doing that depends on your client of choice.

Python example ¶

This code snippet shows how to use RedisGraph with raw Redis commands from Python using redis-py :

Client libraries ¶

Language-specific clients have been written by the community and the RedisGraph team for 6 languages.

The full list and links can be found on the Clients page .

Data import ¶

The RedisGraph team maintains the redisgraph-bulk-loader for importing new graphs from CSV files.

The data format used by this tool is described in the GRAPH.BULK implementation details .

Mailing List / Forum ¶

Got questions? Feel free to ask at the RedisGraph forum .

License ¶

Brew Redis

Mac Redis Cli

Redis Source Available License Agreement - see LICENSE