Memorystore for Memcached V1beta2 Client - Class NodeConfig (1.0.5)

Reference documentation and code samples for the Memorystore for Memcached V1beta2 Client class NodeConfig.

Configuration for a Memcached Node.

Generated from protobuf message google.cloud.memcache.v1beta2.Instance.NodeConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ cpu_count int

Required. Number of cpus per Memcached node.

↳ memory_size_mb int

Required. Memory size in MiB for each Memcached node.

getCpuCount

Required. Number of cpus per Memcached node.

Returns
TypeDescription
int

setCpuCount

Required. Number of cpus per Memcached node.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemorySizeMb

Required. Memory size in MiB for each Memcached node.

Returns
TypeDescription
int

setMemorySizeMb

Required. Memory size in MiB for each Memcached node.

Parameter
NameDescription
var int
Returns
TypeDescription
$this