Skip to content

3.13.0 — 2025-09-21

← 3.13.1 | 3.12.0 → | ↑ 3.x series

Added

Redis Cluster and Sentinel Support

  • Redis Cluster Integration - Added comprehensive Redis Cluster support for distributed caching and high availability

    • Added CLUSTER mode to RedisMode enum for cluster deployment configuration
    • Implemented cluster-specific methods: cluster_info(), cluster_nodes(), cluster_slots(), and cluster_keyslot()
    • Added cluster configuration options: CLUSTER_NODES, CLUSTER_REQUIRE_FULL_COVERAGE, CLUSTER_READ_FROM_REPLICAS
    • Enhanced connection pooling with MAX_CONNECTIONS and retry mechanisms for cluster nodes
    • Improved error handling for cluster-specific operations and node failover scenarios
  • Redis Sentinel Integration - Added Redis Sentinel support for automatic failover and high availability

    • Added SENTINEL mode to RedisMode enum for sentinel deployment configuration
    • Implemented sentinel-specific configuration: SENTINEL_NODES, SENTINEL_SERVICE_NAME, SENTINEL_SOCKET_TIMEOUT
    • Enhanced master/slave discovery and automatic failover through Sentinel coordination
    • Added robust connection management for Sentinel-monitored Redis deployments

Enhanced Redis Configuration

  • Flexible Deployment Modes - Unified configuration system supporting standalone, sentinel, and cluster modes
    • Added RedisMode enum with STANDALONE, SENTINEL, and CLUSTER options
    • Enhanced configuration validation with mode-specific parameter validation
    • Improved connection timeout settings: SOCKET_CONNECT_TIMEOUT and SOCKET_TIMEOUT
    • Added comprehensive error handling for mismatched configuration parameters

Testing and Mocking Improvements

  • Enhanced Mock Support - Extended Redis mocking capabilities for all deployment modes
    • Updated mock implementations to support cluster and sentinel operation simulation
    • Enhanced test coverage for cluster-specific methods and sentinel failover scenarios
    • Improved test configuration with mode-specific environment variables

Changed

Error Handling Enhancements

  • Improved Error Utilities - Enhanced error handling for Redis connection and operation failures
    • Updated error utilities to handle cluster and sentinel specific errors
    • Improved error messaging for connection failures across different Redis modes

Dependencies

  • Redis Client Updates - Updated Redis client dependencies to support cluster and sentinel operations
    • Enhanced Redis protocol support for cluster and sentinel deployments
    • Improved connection handling for distributed Redis architectures