Memorystore for Memcached V1 Client - Class NodeConfig (1.2.2)

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

Configuration for a Memcached Node.

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

Namespace

Google \ Cloud \ Memcache \ V1 \ Instance

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