def can_replicate_commands(self):
        """
        Whether Redis supports single command replication.
        """
        if not hasattr(self, '_can_replicate_commands'):
            info = self.redis.info('server')
            version_info = info['redis_version'].split('.')
            major, minor = int(version_info[0]), int(version_info[1])
            result = major > 3 or major == 3 and minor >= 2
            self._can_replicate_commands = result
        return self._can_replicate_commands
def can_replicate_commands ( self ) : if not hasattr ( self , '_can_replicate_commands' ) : info = self . redis . info ( 'server' ) version_info = info [ 'redis_version' ] . split ( '.' ) major , minor = int ( version_info [ 0 ] ) , int ( version_info [ 1 ] ) result = major > 3 or major == 3 and minor >= 2 self . _can_replicate_commands = result return self . _can_replicate_commands
Whether Redis supports single command replication.