Module optimized

Module optimized 

Source
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§

BatchCommandBuilder
Batch command builder for optimized pipeline operations
CommandCache
Command cache for serialized commands
MemoryPool
Memory pool for reusing temporary objects
OptimizedGetCommand
Optimized GET command with pre-allocated arguments
OptimizedHSetCommand
Optimized HSET command with pre-allocated arguments
OptimizedSetCommand
Optimized SET command with pre-allocated arguments and options
StringInterner
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