Reference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig.
A primary cluster can provide information about all the secondary clusters
replicating from it. However, a secondary cluster only knows about the
primary cluster from which it is replicating. However, for scenarios, where
the primary cluster is unavailable(e.g. regional outage), a GetCluster
request can be sent to any other member cluster and this field will list
all the member clusters participating in cross cluster replication.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Memorystore for Redis V1 API - Class Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-redis-cluster-v1/latest/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-redis-cluster-v1/1.0.1/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.6.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.5.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.5.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.4.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.4.2/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.3.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.2.2](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.2.2/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-redis-cluster-v1/0.1.0/Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig) \nReference documentation and code samples for the Google Cloud Memorystore for Redis V1 API class Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig.\n\nCross cluster replication config. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #cluster_role\n\n def cluster_role() -\u003e ::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole\n\n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication.\n\n### #cluster_role=\n\n def cluster_role=(value) -\u003e ::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication. \n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::ClusterRole](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-ClusterRole)) --- The role of the cluster in cross cluster replication.\n\n### #membership\n\n def membership() -\u003e ::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::Membership\n\n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::Membership](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-Membership)) --- Output only. An output only view of all the member clusters participating in the cross cluster replication. This view will be provided by every member cluster irrespective of its cluster role(primary or secondary).\n\n\n A primary cluster can provide information about all the secondary clusters\n replicating from it. However, a secondary cluster only knows about the\n primary cluster from which it is replicating. However, for scenarios, where\n the primary cluster is unavailable(e.g. regional outage), a GetCluster\n request can be sent to any other member cluster and this field will list\n all the member clusters participating in cross cluster replication.\n\n### #primary_cluster\n\n def primary_cluster() -\u003e ::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster\n\n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.\n\n\n This field is only set for a secondary cluster.\n\n### #primary_cluster=\n\n def primary_cluster=(value) -\u003e ::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.\n\n\nThis field is only set for a secondary cluster. \n**Returns**\n\n- ([::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)) --- Details of the primary cluster that is used as the replication source for this secondary cluster.\n\n\n This field is only set for a secondary cluster.\n\n### #secondary_clusters\n\n def secondary_clusters() -\u003e ::Array\u003c::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)\\\u003e) --- List of secondary clusters that are replicating from this primary cluster.\n\n\n This field is only set for a primary cluster.\n\n### #secondary_clusters=\n\n def secondary_clusters=(value) -\u003e ::Array\u003c::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)\\\u003e) --- List of secondary clusters that are replicating from this primary cluster.\n\n\nThis field is only set for a primary cluster. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Redis::Cluster::V1::CrossClusterReplicationConfig::RemoteCluster](./Google-Cloud-Redis-Cluster-V1-CrossClusterReplicationConfig-RemoteCluster)\\\u003e) --- List of secondary clusters that are replicating from this primary cluster.\n\n\n This field is only set for a primary cluster.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The last time cross cluster replication config was updated."]]