Skip to content

Commit

Permalink
Updated documentation with example for pattern subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
pmembrey committed Apr 18, 2012
1 parent 95b7669 commit 22e365f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -52,6 +52,15 @@ Pubsub:
2> redis_sub:pub_example().
received {message,<<"foo">>,<<"bar">>,<0.34.0>}

Pattern Subscribe:

1> eredis_sub:psub_example().
received {subscribed,<<"foo*">>,<0.33.0>}
{<0.33.0>,<0.36.0>}
2> eredis_sub:ppub_example().
received {pmessage,<<"foo*">>,<<"foo123">>,<<"bar">>,<0.33.0>}
ok
3>

EUnit tests:

Expand Down

0 comments on commit 22e365f

Please sign in to comment.