1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
//! High-performance async Redis client for Rust
//!
//! `redis-oxide` is a comprehensive Redis client library for Rust.
//! It automatically detects whether you're connecting to a standalone Redis server
//! or a Redis Cluster, and handles MOVED/ASK redirects transparently.
//!
//! # 🚀 Features
//!
//! - **Automatic topology detection**: Auto-recognizes Standalone Redis or Redis Cluster
//! - **MOVED/ASK redirect handling**: Automatically handles slot migrations in cluster mode
//! - **Flexible connection strategies**: Supports both Multiplexed connections and Connection Pools
//! - **Type-safe command builders**: Safe API with builder pattern
//! - **Async/await**: Fully asynchronous with Tokio runtime
//! - **Automatic reconnection**: Reconnects with exponential backoff
//! - **Comprehensive error handling**: Detailed and clear error types
//! - **High test coverage**: Extensive unit and integration tests
//! - **Cross-platform support**: Works on Linux, macOS, and Windows
//! - **Pub/Sub Support**: Built-in publish/subscribe messaging
//! - **Streams Support**: Full Redis Streams functionality for event sourcing
//! - **Lua Scripting**: Execute Lua scripts with automatic EVALSHA caching
//! - **Sentinel Support**: High availability with Redis Sentinel
//! - **Transaction Support**: MULTI/EXEC transaction handling
//! - **Pipeline Support**: Batch multiple commands for improved performance
//! - **RESP2/RESP3 Protocol Support**: Full support for both protocol versions
//! - **Connection Pooling**: Configurable connection pooling strategies
//! - **Multiplexed Connections**: Single connection shared across tasks
//! - **Hash Operations**: Complete set of hash data type operations
//! - **List Operations**: Complete set of list data type operations
//! - **Set Operations**: Complete set of set data type operations
//! - **Sorted Set Operations**: Complete set of sorted set data type operations
//! - **String Operations**: Complete set of string data type operations
//! - **HyperLogLog Operations**: Support for probabilistic data structures
//! - **Geo Operations**: Support for geospatial data types
//! - **Performance Optimizations**: Memory pooling and protocol optimizations
//! - **Monitoring & Metrics**: Built-in observability features
//! - **Configurable Timeouts**: Connect, operation, and redirect timeout controls
//! - **Authentication Support**: Password and access control support
//!
//! # 📦 Installation
//!
//! Add this to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! redis-oxide = "0.2.2"
//! tokio = { version = "1.0", features = ["full"] }
//! ```
//!
//! # 🛠️ Quick Start
//!
//! ## Basic Connection (Standalone)
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create configuration
//! let config = ConnectionConfig::new("redis://localhost:6379");
//!
//! // Connect (automatically detects topology)
//! let client = Client::connect(config).await?;
//!
//! // SET and GET
//! client.set("mykey", "Hello, Redis!").await?;
//! if let Some(value) = client.get("mykey").await? {
//! println!("Value: {}", value);
//! }
//!
//! Ok(())
//! }
//! ```
//!
//! ## Redis Cluster Connection
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Provide multiple seed nodes
//! let config = ConnectionConfig::new(
//! "redis://node1:7000,node2:7001,node3:7002"
//! );
//!
//! let client = Client::connect(config).await?;
//!
//! // Client automatically handles MOVED redirects
//! client.set("key", "value").await?;
//!
//! Ok(())
//! }
//! ```
//!
//! # 🎯 Supported Operations
//!
//! ## String Operations
//!
//! ```no_run
//! # use redis_oxide::{Client, ConnectionConfig};
//! # use std::time::Duration;
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // GET
//! let value: Option<String> = client.get("key").await?;
//!
//! // SET
//! client.set("key", "value").await?;
//!
//! // SET with expiration
//! client.set_ex("key", "value", Duration::from_secs(60)).await?;
//!
//! // SET NX (only if key doesn't exist)
//! let set: bool = client.set_nx("key", "value").await?;
//! assert!(set);
//!
//! // DELETE
//! let deleted: i64 = client.del(vec!["key1".to_string(), "key2".to_string()]).await?;
//!
//! // EXISTS
//! let exists: i64 = client.exists(vec!["key".to_string()]).await?;
//!
//! // EXPIRE
//! client.expire("key", Duration::from_secs(60)).await?;
//!
//! // TTL
//! let ttl: Option<i64> = client.ttl("key").await?;
//!
//! // INCR/DECR
//! let new_value: i64 = client.incr("counter").await?;
//! let new_value: i64 = client.decr("counter").await?;
//!
//! // INCRBY/DECRBY
//! let new_value: i64 = client.incr_by("counter", 10).await?;
//! let new_value: i64 = client.decr_by("counter", 5).await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Hash Operations
//!
//! ```no_run,ignore
//! # use redis_oxide::{Client, ConnectionConfig};
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // HSET
//! client.hset("myhash", "field1", "value1").await?;
//! client.hset("myhash", "field2", "value2").await?;
//!
//! // HGET
//! if let Some(value) = client.hget("myhash", "field1").await? {
//! println!("field1: {}", value);
//! }
//!
//! // HGETALL
//! let all_fields = client.hgetall("myhash").await?;
//! println!("All hash fields: {:?}", all_fields);
//!
//! // HMGET (multiple get)
//! let values = client.hmget("myhash", vec!["field1".to_string(), "field2".to_string()]).await?;
//! println!("Multiple fields: {:?}", values);
//!
//! // HMSET (multiple set)
//! use std::collections::HashMap;
//! let mut fields = HashMap::new();
//! fields.insert("field3".to_string(), "value3".to_string());
//! fields.insert("field4".to_string(), "value4".to_string());
//! client.hmset("myhash", fields).await?;
//!
//! // HDEL
//! let deleted: i64 = client.hdel("myhash", vec!["field1".to_string(), "field2".to_string()]).await?;
//!
//! // HEXISTS
//! let exists: bool = client.hexists("myhash", "field1").await?;
//!
//! // HLEN
//! let len: i64 = client.hlen("myhash").await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## List Operations
//!
//! ```no_run
//! # use redis_oxide::{Client, ConnectionConfig};
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // LPUSH
//! client.lpush("mylist", vec!["item1".to_string(), "item2".to_string()]).await?;
//!
//! // RPUSH
//! client.rpush("mylist", vec!["item3".to_string(), "item4".to_string()]).await?;
//!
//! // LRANGE
//! let items = client.lrange("mylist", 0, -1).await?;
//! println!("List items: {:?}", items);
//!
//! // LLEN
//! let len: i64 = client.llen("mylist").await?;
//!
//! // LINDEX
//! if let Some(item) = client.lindex("mylist", 0).await? {
//! println!("First item: {}", item);
//! }
//!
//! // LPOP
//! if let Some(item) = client.lpop("mylist").await? {
//! println!("Popped item: {}", item);
//! }
//! # Ok(())
//! # }
//! ```
//!
//! ## Set Operations
//!
//! ```no_run
//! # use redis_oxide::{Client, ConnectionConfig};
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // SADD
//! client.sadd("myset", vec!["member1".to_string(), "member2".to_string()]).await?;
//!
//! // SMEMBERS
//! let members = client.smembers("myset").await?;
//! println!("Set members: {:?}", members);
//!
//! // SISMEMBER
//! let is_member: bool = client.sismember("myset", "member1").await?;
//!
//! // SREM
//! let removed: i64 = client.srem("myset", vec!["member1".to_string()]).await?;
//!
//! // SCARD
//! let count: i64 = client.scard("myset").await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Sorted Set Operations
//!
//! ```no_run
//! # use redis_oxide::{Client, ConnectionConfig};
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! use std::collections::HashMap;
//!
//! // ZADD
//! let mut members = HashMap::new();
//! members.insert("member1".to_string(), 10.0);
//! members.insert("member2".to_string(), 20.0);
//! client.zadd("mysortedset", members).await?;
//!
//! // ZRANGE
//! let members = client.zrange("mysortedset", 0, -1).await?;
//! println!("Sorted set members: {:?}", members);
//!
//! // ZSCORE
//! if let Some(score) = client.zscore("mysortedset", "member1").await? {
//! println!("Member1 score: {}", score);
//! }
//!
//! // ZCARD
//! let count: i64 = client.zcard("mysortedset").await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## HyperLogLog Operations (Not Yet Implemented)
//!
//! HyperLogLog operations (PFADD, PFCOUNT, PFMERGE) are planned for future implementation.
//!
//! ## Geo Operations (Not Yet Implemented)
//!
//! Geo operations (GEOADD, GEODIST, GEOPOS) are planned for future implementation.
//!
//! ## Connection Pool Configuration
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, PoolConfig, PoolStrategy};
//! use std::time::Duration;
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut config = ConnectionConfig::new("redis://localhost:6379");
//! config.pool = PoolConfig {
//! strategy: PoolStrategy::Pool,
//! max_size: 20, // Max 20 connections
//! min_idle: 5, // Keep at least 5 idle connections
//! connection_timeout: Duration::from_secs(5),
//! };
//!
//! let client = Client::connect(config).await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Multiplexed Connection (Default)
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, PoolConfig, PoolStrategy};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut config = ConnectionConfig::new("redis://localhost:6379");
//! config.pool = PoolConfig {
//! strategy: PoolStrategy::Multiplexed,
//! ..Default::default()
//! };
//!
//! let client = Client::connect(config).await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Transactions
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Start a transaction
//! let mut transaction = client.transaction().await?;
//!
//! // Add commands to the transaction (no await for adding commands)
//! transaction.set("key1", "value1");
//! transaction.set("key2", "value2");
//! transaction.incr("counter");
//!
//! // Execute the transaction
//! let results = transaction.exec().await?;
//! println!("Transaction results: {:?}", results);
//! # Ok(())
//! # }
//! ```
//!
//! ## Pipelines
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Create a pipeline
//! let mut pipeline = client.pipeline();
//!
//! // Add commands to the pipeline (no await for adding commands)
//! pipeline.set("key1", "value1");
//! pipeline.set("key2", "value2");
//! pipeline.get("key1");
//! pipeline.incr("counter");
//!
//! // Execute all commands at once
//! let results = pipeline.execute().await?;
//! println!("Pipeline results: {:?}", results);
//! # Ok(())
//! # }
//! ```
//!
//! ## Pub/Sub Messaging
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//! use futures::StreamExt;
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Publisher example
//! let publisher = client.publisher().await?;
//!
//! let subscribers = publisher.publish("news", "Breaking news!").await?;
//! println!("Message sent to {} subscribers", subscribers);
//!
//! // Subscriber example
//! let mut subscriber = client.subscriber().await?;
//! subscriber.subscribe(vec!["news".to_string(), "updates".to_string()]).await?;
//!
//! // Listen for messages
//! while let Some(message) = subscriber.next_message().await? {
//! println!("Received: {} on channel {}", message.payload, message.channel);
//! }
//! # Ok(())
//! # }
//! ```
//!
//! ## Redis Streams
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, StreamRange, ReadOptions};
//! use std::collections::HashMap;
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Create and add entries to a stream
//! let mut fields = HashMap::new();
//! fields.insert("user_id".to_string(), "123".to_string());
//! fields.insert("action".to_string(), "login".to_string());
//!
//! let entry_id = client.xadd("events", "*", fields).await?;
//! println!("Added entry: {}", entry_id);
//!
//! // Read from stream with range
//! let entries = client.xrange("events", "-", "+", Some(10)).await?;
//! for entry in entries {
//! println!("Entry {}: {:?}", entry.id, entry.fields);
//! }
//!
//! // Read from stream with options
//! let entries = client.xread(vec![("events".to_string(), "0-0".to_string())], Some(5), Some(std::time::Duration::from_millis(100))).await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## Consumer Groups (Redis Streams)
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Create a consumer group
//! client.xgroup_create("events", "processors", "$", true).await?;
//!
//! // Read from the group
//! let messages = client.xreadgroup(
//! "processors",
//! "worker-1",
//! vec![("events".to_string(), ">".to_string())],
//! Some(1),
//! Some(std::time::Duration::from_secs(1))
//! ).await?;
//!
//! for (stream, entries) in messages {
//! for entry in entries {
//! println!("Processing {}: {:?}", entry.id, entry.fields);
//! // Process the message...
//!
//! // Acknowledge the message
//! client.xack("events", "processors", vec![entry.id]).await?;
//! }
//! }
//! # Ok(())
//! # }
//! ```
//!
//! ## Lua Scripting
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, Script};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! # let config = ConnectionConfig::new("redis://localhost:6379");
//! # let client = Client::connect(config).await?;
//! // Execute a simple Lua script
//! let script = "return redis.call('GET', KEYS[1])";
//! let result: Option<String> = client.eval(script, vec!["mykey".to_string()], vec![]).await?;
//! println!("Result: {:?}", result);
//!
//! // Script with arguments
//! let script = r#"
//! local current = redis.call('GET', KEYS[1]) or 0
//! local increment = tonumber(ARGV[1])
//! local new_value = tonumber(current) + increment
//! redis.call('SET', KEYS[1], new_value)
//! return new_value
//! "#;
//!
//! let result: i64 = client.eval(
//! script,
//! vec!["counter".to_string()],
//! vec!["5".to_string()]
//! ).await?;
//! println!("New counter value: {}", result);
//!
//! // Using Script with automatic EVALSHA caching
//! let script = Script::new(r#"
//! local key = KEYS[1]
//! local value = ARGV[1]
//! redis.call('SET', key, value)
//! return redis.call('GET', key)
//! "#);
//!
//! let result: String = script.execute(
//! &client,
//! vec!["mykey".to_string()],
//! vec!["myvalue".to_string()]
//! ).await?;
//! println!("Result: {}", result);
//! # Ok(())
//! # }
//! ```
//!
//! ## Sentinel Support
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, SentinelConfig};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let sentinel_config = SentinelConfig::new("mymaster")
//! .add_sentinel("127.0.0.1:26379")
//! .add_sentinel("127.0.0.1:26380")
//! .add_sentinel("127.0.0.1:26381")
//! .with_password("sentinel_password");
//!
//! let config = ConnectionConfig::new_with_sentinel(sentinel_config);
//! let client = Client::connect(config).await?;
//!
//! // Client automatically connects to current master
//! client.set("key", "value").await?;
//! # Ok(())
//! # }
//! ```
//!
//! ## RESP2/RESP3 Protocol Support
//!
//! ```no_run
//! use redis_oxide::{Client, ConnectionConfig, ProtocolVersion};
//! use std::collections::HashMap;
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // RESP2 (default)
//! let config_resp2 = ConnectionConfig::new("redis://localhost:6379")
//! .with_protocol_version(ProtocolVersion::Resp2);
//! let client_resp2 = Client::connect(config_resp2).await?;
//!
//! // RESP3 (Redis 6.0+)
//! let config_resp3 = ConnectionConfig::new("redis://localhost:6379")
//! .with_protocol_version(ProtocolVersion::Resp3);
//! let client_resp3 = Client::connect(config_resp3).await?;
//!
//! // RESP3 allows more complex data types
//! let mut map = HashMap::new();
//! map.insert("field1".to_string(), "value1".to_string());
//! map.insert("field2".to_string(), "value2".to_string());
//! client_resp3.hmset("myhash", map).await?;
//! # Ok(())
//! # }
//! ```
//!
//! # ⚙️ Configuration Options
//!
//! ## Connection Configuration
//!
//! ```no_run,ignore
//! use redis_oxide::{ConnectionConfig, TopologyMode, ProtocolVersion};
//! use std::time::Duration;
//!
//! let config = ConnectionConfig::new("redis://localhost:6379")
//! .with_password("secret") // Password (optional)
//! .with_database(0) // Database number
//! .with_connect_timeout(Duration::from_secs(5))
//! .with_operation_timeout(Duration::from_secs(30))
//! .with_topology_mode(TopologyMode::Auto) // Auto, Standalone, or Cluster
//! .with_protocol_version(ProtocolVersion::Resp3) // Use RESP3 protocol
//! .with_max_redirects(3) // Max retries for cluster redirects
//! ```
//!
//! # 📊 Performance Features
//!
//! ## Optimized Memory Pooling
//!
//! The library includes optimized memory pooling for frequently allocated objects
//! to reduce allocation overhead and improve performance.
//!
//! ## Connection Multiplexing
//!
//! The multiplexed connection strategy shares a single connection across multiple
//! tasks using an efficient message passing system, providing excellent performance
//! for most use cases.
//!
//! ## Async/Await Support
//!
//! Fully async implementation using Tokio runtime for maximum performance and
//! resource efficiency.
//!
//! # 🧪 Testing
//!
//! To run the tests, you'll need a Redis server running on `localhost:6379`:
//!
//! ```bash
//! # Run all tests
//! cargo test
//!
//! # Run integration tests specifically
//! cargo test --test integration_tests
//!
//! # Run tests with Redis server
//! docker run --rm -p 6379:6379 redis:7
//! cargo test
//! ```
//!
//! # 📄 License
//!
//! This project is licensed under either of the following, at your option:
//!
//! - Apache License, Version 2.0, ([LICENSE-APACHE](https://github.com/nghiaphamln/redis-oxide/blob/main/LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
//! - MIT license ([LICENSE-MIT](https://github.com/nghiaphamln/redis-oxide/blob/main/LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
//#![deny(clippy::pedantic)] // Temporarily disabled due to clippy::unnecessary_literal_bound incompatibility
// Allow cargo lints for now
// Allow broken doc links for now
// Allow invalid HTML tags for now
// Allow raw string hashes
// Allow missing panics doc for now
// Allow option if let else for readability
// Allow pass by value for API design
// Allow for recursive functions
// Allow in tests
// Allow for custom method names
// Allow precision loss for performance metrics
// Allow for readability
// Allow for readability
// Allow for explicit patterns
// Allow for optimization code
// Allow for protocol handling
// Allow for complex protocol functions
// Allow for async code patterns
// Allow for API consistency
// Allow for readability
// Allow for explicit patterns
// Allow for readability
// Allow for API consistency
// Allow for trait implementations
pub use Client;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use crate;
// Re-export protocol types
pub use crate;