/jedis

+ thread safe jedis client

Primary LanguageJavaMIT LicenseMIT

#ThreadSafeJedis

Usage Options:

    ThreadSafeJedis threadSafeJedis = new ThreadSafeJedis("host", 6379, "password");
    JedisPoolConfig poolConfig = new JedisPoolConfig();
    poolConfig.setMaxTotal(500);
    ThreadSafeJedis threadSafeJedis = new ThreadSafeJedis(poolConfig, "host", 6379, "password");

..etc

The threadSafeJedis object is thread safe and can be used in a multi-threaded environment without having to worry about pool and resource management. This class is version-independant, and can be used with any version of Jedis by simply adding the ThreadSafeJedis class to the redis.clients.jedis package in main/java folder and re-building the source.

##Current Status Currently, this implementation only supports a sub-set of redis commands like the important commands involving keys, hashes and sets. Rest of the commands are yet to be implemented, and can be easily implemented using a similar pattern as the commands that have already been implemented. For more information please have at look at this link