Redis

Hello all,

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

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. It's very fast and efficient. Withit you can "sync" multiple sketches with data. Have fun!

Repository: https://github.com/voidplus/redis-processing

Redis: http://redis.io/

Regards, Darius

Comments

  • Good! I am sure lot of Processing users can find an usage to Redis, eg. as an interesting alternative to loadStrings() / saveStrings() or similar.

    I suggest to post here an interesting sample of usage of your library, to get an idea how it works, how easy it is to use it, how useful it can be...

    This might be already on GitHub, but it is called marketing (hook users!). :-D

  • edited March 2014

    Hello,

    I am wondering if there is some documentation how to use alle the Redis commands with Processing?

    Given the number of Redis commands is limited -> Processing/Java documentation of the (most important) Redis commands would be really helpfull.

    Below an example I made to demonstrate the command hmset

    import de.voidplus.redis.*;
    import java.util.Map;
    
    
    Redis redis;
    
    void setup(){
    
      redis = new Redis(this, "127.0.0.1", 6379);
    
    
    // *** Example Redis command hmset ***
    
     Map<String,String> values = new HashMap<String,String>();
            values.put("login", "login-value");
            values.put("id", "id-value");
            values.put("name", "name-value");
            redis.hmset("user", values);
      println(redis.hget("user", "login"));
    
    }
    

    Thanks all, elfs

Sign In or Register to comment.