Expand description
redis-streams-rs exposes the Redis Stream
functionality as a Trait on top of redis-rs.
The crate is called redis_streams.
In order to you use this crate, you’ll first want to add it as a github dependency (until I have a chance to publish on crates.io).
[dependencies.redis_streams]
git = "https://github.com/grippy/redis-streams-rs.git"From here, just unlock the streaming commands prior to instantiating client connections.
use redis_streams::{client_open,Connection,StreamCommands};
let client = client_open("redis://127.0.0.1/0").unwrap();
let mut con = client.get_connection().unwrap();This crate also exposes all top-level redis-rs types.
To pick up all redis-rs Commands, just use the Commands trait.
use redis_streams::{Commands};Structs§
- Stream
Claim Options - Builder options for
xclaim_optionscommand. - Stream
Claim Reply - Reply type used with
xclaimcommand. - Stream
Id - Represents a stream
idand its field/values as aHashMap - Stream
Info Consumer - A consumer parsed from
xinfo_consumerscommand. - Stream
Info Consumers Reply - Reply type used with
xinfo_consumercommand. - Stream
Info Group - A group parsed from
xinfo_groupscommand. - Stream
Info Groups Reply - Reply type used with
xinfo_groupscommand. - Stream
Info Stream Reply - Reply type used with
xinfo_streamcommand. - Stream
Key - Represents a stream
keyand itsid’s parsed fromxreadmethods. - Stream
Pending Count Reply - Reply type used with
xpending_countandxpending_consumer_countcommands. - Stream
Pending Data - Inner reply type when an [
xpending] command has data. - Stream
Pending Id - Represents a pending message parsed from
xpendingmethods. - Stream
Range Reply - Reply type used with
xrange,xrange_count,xrange_all,xrevrange,xrevrange_count,xrevrange_allcommands. - Stream
Read Options - Builder options for
xread_optionscommand. - Stream
Read Reply - Reply type used with
xreadorxread_optionscommands.
Enums§
- Stream
Maxlen - Utility enum for passing
MAXLEN [= or ~] [COUNT]arguments intoStreamCommands. The enum value represents the count. - Stream
Pending Reply - Reply type used with
xpendingcommand.
Traits§
- Stream
Commands - Implementation of all redis stream commands.
Functions§
- client_
open - Curry
redis::Client::opencalls.