https://github.com/redislabs/redis-stream
Exposes Redis stream through the command line
https://github.com/redislabs/redis-stream
Last synced: about 1 year ago
JSON representation
Exposes Redis stream through the command line
- Host: GitHub
- URL: https://github.com/redislabs/redis-stream
- Owner: RedisLabs
- License: bsd-2-clause
- Created: 2020-01-13T09:18:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-28T08:39:43.000Z (about 4 years ago)
- Last Synced: 2025-04-06T17:01:38.769Z (about 1 year ago)
- Language: C
- Size: 102 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redis-stream
Exposes [Redis stream](https://redis.io/topics/streams-intro) through the command line
## Example
Suppose we want to list all files containing both `'a'` and `'z'` characters
e.g. azores.txt, arizona.md.
Using multiple `grep` processes.
We'll start by recursively scanning our file-system, filtering files containing `'a'` character using grep, these will be written into a redis stream `fs` for later parallel consumption:
`ls -R | grep a | xargs -L1 | redis-stream -s fs`
To apply the second filter (files containing both `'a'` and `'z'` characters) we'll be pulling from the `fs` stream using multiple consumers, feeding our data once again into `grep`.
```
redis-stream -s fs | grep z
redis-stream -s fs | grep z
redis-stream -s fs | grep z
```