#stream #redis #async-stream #stream-processing #output-stream #async

app redis-streams-dump

一个小工具,用于将Redis Streams内容导出到SeaStreamer文件

1个不稳定版本

0.3.0 2023年9月7日

#18 in #output-stream

MIT/Apache

420KB
9K SLoC

Rust 8K SLoC // 0.0% comments TypeScript 1.5K SLoC // 0.1% comments Scheme 25 SLoC JavaScript 3 SLoC

Redis Streams导出

一个小工具,用于将Redis Streams消息导出到SeaStreamer文件。

cargo install redis-streams-dump
redis-streams-dump --stream redis://127.0.0.1/clock --output ./clock.ss --since 2023-09-05T13:30:00.7 --until 2023-09-05T13:30:00.8
# OR in the workspace
cargo run --package redis-streams-dump -- ..
redis-streams-dump 0.3.2

USAGE:
    redis-streams-dump [OPTIONS] --output <output> --stream <stream>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --output <output>    Output file. Overwrites if exist
        --since <since>      Timestamp start of range
        --stream <stream>    Streamer URI with stream key, i.e. try `redis://127.0.0.1/hello`
        --until <until>      Timestamp end of range

依赖项

~12–25MB
~379K SLoC