# Google Cloud Memorystore for Redis V1 API - Module Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode (v2.6.0)

2.6.0 (latest) 2.5.1 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.2 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API module Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode.

Specifies different modes of operation in relation to the data retention.

## Constants

### DATA_PROTECTION_MODE_UNSPECIFIED

**value:** 0  
Defaults to LIMITED_DATA_LOSS if a data protection mode is not
specified.

### LIMITED_DATA_LOSS

**value:** 1  
Instance failover will be protected with data loss control. More
specifically, the failover will only be performed if the current
replication offset diff between primary and replica is under a certain
threshold.

### FORCE_DATA_LOSS

**value:** 2  
Instance failover will be performed without data loss control.