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

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 Google\Cloud\Redis\Cluster\V1\ClusterPersistenceConfig\RDBConfig

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

↳ aof_config Google\Cloud\Redis\Cluster\V1\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
Google\Cloud\Redis\Cluster\V1\ClusterPersistenceConfig\RDBConfig|null

hasRdbConfig

clearRdbConfig

setRdbConfig

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

Parameter
Name Description
var Google\Cloud\Redis\Cluster\V1\ClusterPersistenceConfig\RDBConfig
Returns
Type Description
$this

getAofConfig

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

Returns
Type Description
Google\Cloud\Redis\Cluster\V1\ClusterPersistenceConfig\AOFConfig|null

hasAofConfig

clearAofConfig

setAofConfig

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

Parameter
Name Description
var Google\Cloud\Redis\Cluster\V1\ClusterPersistenceConfig\AOFConfig
Returns
Type Description
$this