Expand description
Optimized command builders with pre-allocation and caching
This module provides optimized versions of command builders that:
- Pre-allocate argument vectors based on command type
- Cache frequently used keys and values
- Optimize serialized command caching
- Reduce memory allocations
Structs§
- Batch
Command Builder - Batch command builder for optimized pipeline operations
- Command
Cache - Command cache for serialized commands
- Memory
Pool - Memory pool for reusing temporary objects
- Optimized
GetCommand - Optimized GET command with pre-allocated arguments
- OptimizedH
SetCommand - Optimized HSET command with pre-allocated arguments
- Optimized
SetCommand - Optimized SET command with pre-allocated arguments and options
- String
Interner - String interning cache for frequently used strings
Functions§
- init_
string_ interner - Initialize the global string interner
- intern_
string - Intern a string using the global interner