Wrapper to use Redis in Processing. It's based on Jedis, a small Java client by Jonathan Leibiusky.
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.
- Redis-Wrapper v1.1.2 includes Jedis v3.0.0 with Redis v2.8.5 support.
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.
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
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
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"));
}
Useful links for developers:
Don't be shy and feel free to contact me on Twitter: @darius_morawiec
The wrapper is Open Source Software released under the License.