Permalink
Browse files

Updated documentation with example for pattern subscribe

  • Loading branch information...
pmembrey committed Apr 18, 2012
1 parent 95b7669 commit 22e365f1d50dc7fa15011c57b202b3294a5efdb1
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -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:

0 comments on commit 22e365f

Please sign in to comment.