Memorystore for Memcached V1 Client - Class NodeConfig (2.0.0-RC1)

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
Name Description
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
Type Description
int

setCpuCount

Required. Number of cpus per Memcached node.

Parameter
Name Description
var int
Returns
Type Description
$this

getMemorySizeMb

Required. Memory size in MiB for each Memcached node.

Returns
Type Description
int

setMemorySizeMb

Required. Memory size in MiB for each Memcached node.

Parameter
Name Description
var int
Returns
Type Description
$this