Reference documentation and code samples for the Google Cloud Memorystore V1beta Client class PersistenceConfig.
Represents persistence configuration for a instance.
Generated from protobuf message google.cloud.memorystore.v1beta.PersistenceConfig
Namespace
Google \ Cloud \ Memorystore \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ mode |
int
Optional. Current persistence mode. |
↳ rdb_config |
PersistenceConfig\RDBConfig
Optional. RDB configuration. This field will be ignored if mode is not RDB. |
↳ aof_config |
PersistenceConfig\AOFConfig
Optional. AOF configuration. This field will be ignored if mode is not AOF. |
getMode
Optional. Current persistence mode.
| Returns | |
|---|---|
| Type | Description |
int |
|
setMode
Optional. Current persistence mode.
| 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 |
PersistenceConfig\RDBConfig|null |
|
hasRdbConfig
clearRdbConfig
setRdbConfig
Optional. RDB configuration. This field will be ignored if mode is not RDB.
| Parameter | |
|---|---|
| Name | Description |
var |
PersistenceConfig\RDBConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAofConfig
Optional. AOF configuration. This field will be ignored if mode is not AOF.
| Returns | |
|---|---|
| Type | Description |
PersistenceConfig\AOFConfig|null |
|
hasAofConfig
clearAofConfig
setAofConfig
Optional. AOF configuration. This field will be ignored if mode is not AOF.
| Parameter | |
|---|---|
| Name | Description |
var |
PersistenceConfig\AOFConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|