Created
July 21, 2014 18:36
-
-
Save jacqui/2ec619a586859ff025f0 to your computer and use it in GitHub Desktop.
Streamtools pattern for getting psub data out of redis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Blocks": [ | |
{ | |
"Id": "1", | |
"Type": "redis", | |
"Rule": { | |
"Arguments": [ | |
"'streams.*'" | |
], | |
"Command": "PSUBSCRIBE", | |
"Password": "", | |
"Server": "localhost:6379" | |
}, | |
"Position": { | |
"X": 523, | |
"Y": 150 | |
} | |
}, | |
{ | |
"Id": "2", | |
"Type": "tolog", | |
"Rule": null, | |
"Position": { | |
"X": 522, | |
"Y": 240 | |
} | |
}, | |
{ | |
"Id": "3", | |
"Type": "bang", | |
"Rule": null, | |
"Position": { | |
"X": 609, | |
"Y": 62 | |
} | |
}, | |
{ | |
"Id": "4", | |
"Type": "ticker", | |
"Rule": { | |
"Interval": "10s" | |
}, | |
"Position": { | |
"X": 416, | |
"Y": 81 | |
} | |
} | |
], | |
"Connections": [ | |
{ | |
"Id": "5", | |
"FromId": "3", | |
"ToId": "1", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "6", | |
"FromId": "1", | |
"ToId": "2", | |
"ToRoute": "in" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment