Google Cloud Redis Cluster V1 Client - Class ClusterPersistenceConfig (0.3.1)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ClusterPersistenceConfig.

Configuration of the persistence functionality.

Generated from protobuf message google.cloud.redis.cluster.v1.ClusterPersistenceConfig

Namespace

Google \ Cloud \ Redis \ Cluster \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mode int

Optional. The mode of persistence.

↳ rdb_config ClusterPersistenceConfig\RDBConfig

Optional. RDB configuration. This field will be ignored if mode is not RDB.

↳ aof_config ClusterPersistenceConfig\AOFConfig

Optional. AOF configuration. This field will be ignored if mode is not AOF.

getMode

Optional. The mode of persistence.

Returns
Type Description
int

setMode

Optional. The mode of persistence.

Parameter
Name Description
var int
Returns
Type Description
$this

getRdbConfig

Optional. RDB configuration. This field will be ignored if mode is not RDB.

Returns
Type Description
ClusterPersistenceConfig\RDBConfig|null

hasRdbConfig

clearRdbConfig

setRdbConfig

Optional. RDB configuration. This field will be ignored if mode is not RDB.

Parameter
Name Description
var ClusterPersistenceConfig\RDBConfig
Returns
Type Description
$this

getAofConfig

Optional. AOF configuration. This field will be ignored if mode is not AOF.

Returns
Type Description
ClusterPersistenceConfig\AOFConfig|null

hasAofConfig

clearAofConfig

setAofConfig

Optional. AOF configuration. This field will be ignored if mode is not AOF.

Parameter
Name Description
var ClusterPersistenceConfig\AOFConfig
Returns
Type Description
$this