Use RedisPlugin in non-web environment


RedisPlugin can also be used in non-web environments. Just introduce jfinal.jar and then call redisPlugin.start(). The following is a code example:

##public class RedisTest {
public static void main(String[] args) {
RedisPlugin rp = new RedisPlugin("myRedis" , "localhost");
// The only difference from the web is that the start() method needs to be called once here rp.start();

Redis.use().set("key", " value");
Redis.use().get("key");
}
}