Skip to content

Instantly share code, notes, and snippets.

@jacqui
Created July 21, 2014 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacqui/2ec619a586859ff025f0 to your computer and use it in GitHub Desktop.
Save jacqui/2ec619a586859ff025f0 to your computer and use it in GitHub Desktop.
Streamtools pattern for getting psub data out of redis
{
"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