Skip to content

mairbek/rxjava-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RxJava + Redis PubSub

Quick example how to use RxJava with Jedis.

    RedisPubSub.observe(jedis, "channel")
            .map(new Func1<String, Integer>() {
                @Override
                public Integer call(String s) {
                    return s.length();
                }
            })
            .subscribe(new Action1<Integer>() {
                @Override
                public void call(Integer len) {
                    System.out.println(len);
                }
            });

About

rxjava-redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages