Wrapper to use Redis in Processing. It's based on Jedis, a small Java client by Jonathan Leibiusky.
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
download updated build properties Feb 5, 2015
examples/e1_basic
jedis @ 434464f
src updated build properties Feb 5, 2015
.gitignore updated dependencies (jedis) Nov 12, 2014
.gitmodules added initial project version Nov 23, 2013
LICENSE.txt
README.md updated jedis to 3.0.0 Feb 3, 2015

README.md

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:

  • OSX (10.10 Yosemite)
  • Windows (not tested yet, but x86 and x64 should work)

Processing Version:

  • 2.2.1
  • 2.1.1
  • 2.1.0

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.