Home

Awesome

Redis for Processing

Wrapper to use Redis in Processing. It's based on Jedis, a small Java client by Jonathan Leibiusky.

Table of Contents

About

Introduction to Redis: Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Download

Installation

Processing library

Unzip and put the extracted Redis folder into the libraries folder of your Processing sketches. Reference and examples are included in the Redis folder. For more help read the tutorial by Daniel Shiffman.

Redis server

You can follow the official installation steps here:

$ wget http://download.redis.io/releases/redis-2.8.19.tar.gz
$ tar xzf redis-2.8.19.tar.gz
$ cd redis-2.8.19
$ make

Or you can use Homebrew (OS X):

$ brew install redis

Tested

System:

Processing Version:

Examples

Usage

Start a Redis server:

$ redis-server --port 6379

Run the following sketch:

import de.voidplus.redis.*;

Redis redis;

void setup(){
    // ...
    
    redis = new Redis(this, "127.0.0.1", 6379);
    
    redis.set("key", "value");
    println(redis.get("key"));
}

Links

Useful links for developers:

Questions?

Don't be shy and feel free to contact me on Twitter: @darius_morawiec

License

The wrapper is Open Source Software released under the License.